mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
|
|
import mockState from '../../../test/data/mock-state.json';
|
|
import configureStore from '../../store/store';
|
|
import ConfirmSendEther from './confirm-send-ether';
|
|
|
|
const sendEther = {
|
|
id: 9597986287241458,
|
|
time: 1681203297082,
|
|
status: 'unapproved',
|
|
metamaskNetworkId: '5',
|
|
originalGasEstimate: '0x5208',
|
|
userEditedGasLimit: false,
|
|
chainId: '0x5',
|
|
loadingDefaults: false,
|
|
dappSuggestedGasFees: {
|
|
maxPriorityFeePerGas: '0x3b9aca00',
|
|
maxFeePerGas: '0x2540be400',
|
|
},
|
|
sendFlowHistory: [],
|
|
txParams: {
|
|
from: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
|
|
to: '0x0c54fccd2e384b4bb6f2e405bf5cbc15a017aafb',
|
|
value: '0x0',
|
|
gas: '0x5208',
|
|
maxFeePerGas: '0x2540be400',
|
|
maxPriorityFeePerGas: '0x3b9aca00',
|
|
},
|
|
origin: 'https://metamask.github.io',
|
|
actionId: 1830698773,
|
|
type: 'simpleSend',
|
|
securityProviderResponse: null,
|
|
userFeeLevel: 'dappSuggested',
|
|
defaultGasEstimates: {
|
|
estimateType: 'dappSuggested',
|
|
gas: '0x5208',
|
|
maxFeePerGas: '0x2540be400',
|
|
maxPriorityFeePerGas: '0x3b9aca00',
|
|
},
|
|
};
|
|
|
|
mockState.metamask.unapprovedTxs[sendEther.id] = sendEther;
|
|
mockState.confirmTransaction = {
|
|
txData: sendEther,
|
|
};
|
|
const store = configureStore(mockState);
|
|
|
|
export default {
|
|
title: 'Pages/ConfirmSendEther',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
};
|
|
|
|
export const DefaultStory = () => {
|
|
return <ConfirmSendEther />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|