1
0
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:
Szymon Lesisz 2018-04-11 12:13:38 +02:00
parent 60ead5a452
commit d9789c74b4
19 changed files with 36 additions and 36 deletions

View File

@ -2,10 +2,10 @@
'use strict'; 'use strict';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from './constants/TrezorConnect';
import * as ADDRESS from './constants/Address'; import * as ADDRESS from './constants/address';
import * as TOKEN from './constants/Token'; import * as TOKEN from './constants/token';
import * as DISCOVERY from './constants/Discovery'; import * as DISCOVERY from './constants/discovery';
import * as STORAGE from './constants/LocalStorage'; import * as STORAGE from './constants/localStorage';
import { httpRequest } from '../utils/networkUtils'; import { httpRequest } from '../utils/networkUtils';
export function loadData(): any { export function loadData(): any {

View File

@ -2,7 +2,7 @@
'use strict'; 'use strict';
import TrezorConnect, { UI, UI_EVENT } from 'trezor-connect'; 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'; import * as CONNECT from './constants/TrezorConnect';

View File

@ -1,7 +1,7 @@
/* @flow */ /* @flow */
'use strict'; 'use strict';
import * as SEND from './constants/SendForm'; import * as SEND from './constants/send';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from './constants/notification';
import { estimateGas, getGasPrice, pushTx } from './Web3Actions'; import { estimateGas, getGasPrice, pushTx } from './Web3Actions';

View File

@ -3,8 +3,8 @@
import EthereumjsUtil from 'ethereumjs-util'; import EthereumjsUtil from 'ethereumjs-util';
import * as SUMMARY from './constants/summary'; import * as SUMMARY from './constants/summary';
import * as TOKEN from './constants/Token'; import * as TOKEN from './constants/token';
import * as ADDRESS from './constants/Address'; import * as ADDRESS from './constants/address';
import { resolveAfter } from '../utils/promiseUtils'; import { resolveAfter } from '../utils/promiseUtils';
import { getTokenInfoAsync, getTokenBalanceAsync } from './Web3Actions'; import { getTokenInfoAsync, getTokenBalanceAsync } from './Web3Actions';

View File

@ -2,10 +2,10 @@
'use strict'; 'use strict';
import TrezorConnect, { UI, DEVICE, DEVICE_EVENT, UI_EVENT, TRANSPORT_EVENT } from 'trezor-connect'; import TrezorConnect, { UI, DEVICE, DEVICE_EVENT, UI_EVENT, TRANSPORT_EVENT } from 'trezor-connect';
import * as ADDRESS from './constants/Address'; import * as ADDRESS from './constants/address';
import * as TOKEN from './constants/Token'; import * as TOKEN from './constants/token';
import * as CONNECT from './constants/TrezorConnect'; 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 NOTIFICATION from './constants/notification';
import * as WALLET from './constants/wallet'; import * as WALLET from './constants/wallet';

View File

@ -7,8 +7,8 @@ import EthereumjsUtil from 'ethereumjs-util';
import EthereumjsTx from 'ethereumjs-tx'; import EthereumjsTx from 'ethereumjs-tx';
import TrezorConnect from 'trezor-connect'; import TrezorConnect from 'trezor-connect';
import { strip } from '../utils/ethUtils'; import { strip } from '../utils/ethUtils';
import * as ADDRESS from './constants/Address'; import * as ADDRESS from './constants/address';
import * as WEB3 from './constants/Web3'; import * as WEB3 from './constants/web3';
import { httpRequest } from '../utils/networkUtils'; import { httpRequest } from '../utils/networkUtils';
type ActionMethod = (dispatch: any, getState: any) => Promise<any>; type ActionMethod = (dispatch: any, getState: any) => Promise<any>;

View File

@ -23,7 +23,7 @@ import RememberDevice, { ForgetDevice, DisconnectDevice } from './RememberDevice
import DuplicateDevice from './DuplicateDevice'; import DuplicateDevice from './DuplicateDevice';
import * as RECEIVE from '../../actions/constants/receive'; 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'; import * as CONNECT from '../../actions/constants/TrezorConnect';
const duration = 300; const duration = 300;

View File

@ -2,7 +2,7 @@
'use strict'; 'use strict';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as ADDRESS from '../actions/constants/Address'; import * as ADDRESS from '../actions/constants/address';
export type Account = { export type Account = {
loaded: boolean; loaded: boolean;

View File

@ -1,8 +1,8 @@
/* @flow */ /* @flow */
'use strict'; 'use strict';
import * as DISCOVERY from '../actions/constants/Discovery'; import * as DISCOVERY from '../actions/constants/discovery';
import * as ADDRESS from '../actions/constants/Address'; import * as ADDRESS from '../actions/constants/address';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
export type Discovery = { export type Discovery = {

View File

@ -1,7 +1,7 @@
/* @flow */ /* @flow */
'use strict'; 'use strict';
import * as STORAGE from '../actions/constants/LocalStorage'; import * as STORAGE from '../actions/constants/localStorage';
type State = { type State = {
initialized: boolean; initialized: boolean;

View File

@ -3,7 +3,7 @@
import { UI, DEVICE } from 'trezor-connect'; import { UI, DEVICE } from 'trezor-connect';
import * as RECEIVE from '../actions/constants/receive'; 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'; import * as CONNECT from '../actions/constants/TrezorConnect';
type ModalState = { type ModalState = {

View File

@ -1,8 +1,8 @@
/* @flow */ /* @flow */
'use strict'; 'use strict';
import * as SEND from '../actions/constants/SendForm'; import * as SEND from '../actions/constants/send';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
export type PendingTx = { export type PendingTx = {
+id: string; +id: string;

View File

@ -2,9 +2,9 @@
'use strict'; 'use strict';
import { LOCATION_CHANGE } from 'react-router-redux'; import { LOCATION_CHANGE } from 'react-router-redux';
import * as SEND from '../actions/constants/SendForm'; import * as SEND from '../actions/constants/send';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
import * as ADDRESS from '../actions/constants/Address'; import * as ADDRESS from '../actions/constants/address';
import EthereumjsUnits from 'ethereumjs-units'; import EthereumjsUnits from 'ethereumjs-units';
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import { getFeeLevels } from '../actions/SendFormActions'; import { getFeeLevels } from '../actions/SendFormActions';

View File

@ -2,7 +2,7 @@
'use strict'; 'use strict';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as TOKEN from '../actions/constants/Token'; import * as TOKEN from '../actions/constants/token';
export type Token = { export type Token = {
loaded: boolean; loaded: boolean;

View File

@ -1,7 +1,7 @@
/* @flow */ /* @flow */
'use strict'; 'use strict';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
import * as WALLET from '../actions/constants/wallet'; import * as WALLET from '../actions/constants/wallet';
type State = { type State = {

View File

@ -3,8 +3,8 @@
import Web3 from 'web3'; import Web3 from 'web3';
import * as STORAGE from '../actions/constants/LocalStorage'; import * as STORAGE from '../actions/constants/localStorage';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
type Web3Instance = { type Web3Instance = {
network: string; network: string;

View File

@ -6,12 +6,12 @@ import * as LocalStorageActions from '../actions/LocalStorageActions';
import { DEVICE } from 'trezor-connect'; import { DEVICE } from 'trezor-connect';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as MODAL from '../actions/constants/Modal'; import * as MODAL from '../actions/constants/modal';
import * as TOKEN from '../actions/constants/Token'; import * as TOKEN from '../actions/constants/token';
import * as ADDRESS from '../actions/constants/Address'; import * as ADDRESS from '../actions/constants/address';
import * as DISCOVERY from '../actions/constants/Discovery'; import * as DISCOVERY from '../actions/constants/discovery';
import * as SEND from '../actions/constants/SendForm'; import * as SEND from '../actions/constants/send';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
// https://github.com/STRML/react-localstorage/blob/master/react-localstorage.js // https://github.com/STRML/react-localstorage/blob/master/react-localstorage.js

View File

@ -7,8 +7,8 @@ import TrezorConnect, { TRANSPORT, DEVICE_EVENT, UI_EVENT, UI, DEVICE } from 'tr
import * as TrezorConnectActions from '../actions/TrezorConnectActions'; import * as TrezorConnectActions from '../actions/TrezorConnectActions';
import * as ModalActions from '../actions/ModalActions'; import * as ModalActions from '../actions/ModalActions';
import { init as initWeb3 } from '../actions/Web3Actions'; import { init as initWeb3 } from '../actions/Web3Actions';
import * as WEB3 from '../actions/constants/Web3'; import * as WEB3 from '../actions/constants/web3';
import * as STORAGE from '../actions/constants/LocalStorage'; import * as STORAGE from '../actions/constants/localStorage';
import * as CONNECT from '../actions/constants/TrezorConnect'; import * as CONNECT from '../actions/constants/TrezorConnect';
import * as NOTIFICATION from '../actions/constants/notification'; import * as NOTIFICATION from '../actions/constants/notification';
import * as MODAL from '../actions/constants/Modal'; import * as MODAL from '../actions/constants/Modal';