You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.7 KiB
70 lines
1.7 KiB
4 years ago
|
import { MAINNET_CHAIN_ID } from '../../shared/constants/network';
|
||
|
|
||
|
export const createSwapsMockStore = () => {
|
||
|
return {
|
||
|
swaps: {
|
||
|
customGas: {
|
||
|
fallBackPrice: 5,
|
||
|
},
|
||
|
},
|
||
|
metamask: {
|
||
|
provider: {
|
||
|
chainId: MAINNET_CHAIN_ID,
|
||
|
},
|
||
|
cachedBalances: {
|
||
|
[MAINNET_CHAIN_ID]: 5,
|
||
|
},
|
||
|
accounts: {
|
||
|
'0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc': {
|
||
|
address: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
|
||
|
balance: '0x0',
|
||
|
},
|
||
|
'0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b': {
|
||
|
address: '0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b',
|
||
|
balance: '0x0',
|
||
|
},
|
||
|
},
|
||
|
selectedAddress: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
|
||
|
frequentRpcListDetail: [],
|
||
|
swapsState: {
|
||
|
quotes: {},
|
||
|
fetchParams: {
|
||
|
metaData: {
|
||
|
sourceTokenInfo: {
|
||
|
symbol: 'BAT',
|
||
|
},
|
||
|
destinationTokenInfo: {
|
||
|
symbol: 'ETH',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
tokens: [
|
||
|
{
|
||
|
erc20: true,
|
||
|
symbol: 'BAT',
|
||
|
decimals: 18,
|
||
|
address: '0x0D8775F648430679A709E98d2b0Cb6250d2887EF',
|
||
|
},
|
||
|
{
|
||
|
erc20: true,
|
||
|
symbol: 'USDT',
|
||
|
decimals: 6,
|
||
|
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
||
|
},
|
||
|
],
|
||
|
tradeTxId: null,
|
||
|
approveTxId: null,
|
||
|
quotesLastFetched: null,
|
||
|
customMaxGas: '',
|
||
|
customGasPrice: null,
|
||
|
selectedAggId: null,
|
||
|
customApproveTxData: '',
|
||
|
errorKey: '',
|
||
|
topAggId: null,
|
||
|
routeState: '',
|
||
|
swapsFeatureIsLive: false,
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
};
|