|
|
@ -16,7 +16,7 @@ import { |
|
|
|
clearPopUp, createNewBlockchainAccount, |
|
|
|
clearPopUp, createNewBlockchainAccount, |
|
|
|
setPassphrasePrompt, setMatchPassphrasePrompt, |
|
|
|
setPassphrasePrompt, setMatchPassphrasePrompt, |
|
|
|
signMessageWithAddress, getSelectedContract, |
|
|
|
signMessageWithAddress, getSelectedContract, |
|
|
|
createInstance, setCheckIpfs, |
|
|
|
createInstance, |
|
|
|
updateBaseFeePerGas, updateConfirmSettings, |
|
|
|
updateBaseFeePerGas, updateConfirmSettings, |
|
|
|
updateGasPrice, updateGasPriceStatus, |
|
|
|
updateGasPrice, updateGasPriceStatus, |
|
|
|
updateMaxFee, updateMaxPriorityFee, |
|
|
|
updateMaxFee, updateMaxPriorityFee, |
|
|
@ -25,7 +25,7 @@ import { |
|
|
|
runTransactions, loadAddress, |
|
|
|
runTransactions, loadAddress, |
|
|
|
storeScenario, runCurrentScenario, |
|
|
|
storeScenario, runCurrentScenario, |
|
|
|
updateScenarioPath, initWebDialogs, |
|
|
|
updateScenarioPath, initWebDialogs, |
|
|
|
getFuncABIInputs |
|
|
|
getFuncABIInputs, setNetworkNameFromProvider |
|
|
|
} from './actions' |
|
|
|
} from './actions' |
|
|
|
import './css/run-tab.css' |
|
|
|
import './css/run-tab.css' |
|
|
|
import { PublishToStorage } from '@remix-ui/publish-to-storage' |
|
|
|
import { PublishToStorage } from '@remix-ui/publish-to-storage' |
|
|
@ -33,6 +33,7 @@ import { PassphrasePrompt } from './components/passphrase' |
|
|
|
import { MainnetPrompt } from './components/mainnet' |
|
|
|
import { MainnetPrompt } from './components/mainnet' |
|
|
|
import { ScenarioPrompt } from './components/scenario' |
|
|
|
import { ScenarioPrompt } from './components/scenario' |
|
|
|
import { Web3ProviderDialog } from './components/web3Dialog' |
|
|
|
import { Web3ProviderDialog } from './components/web3Dialog' |
|
|
|
|
|
|
|
import { setIpfsCheckedState } from './actions/payload' |
|
|
|
|
|
|
|
|
|
|
|
export function RunTabUI (props: RunTabProps) { |
|
|
|
export function RunTabUI (props: RunTabProps) { |
|
|
|
const { plugin } = props |
|
|
|
const { plugin } = props |
|
|
@ -112,6 +113,10 @@ export function RunTabUI (props: RunTabProps) { |
|
|
|
} |
|
|
|
} |
|
|
|
}, [runTab.popup]) |
|
|
|
}, [runTab.popup]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setCheckIpfs = (value: boolean) => { |
|
|
|
|
|
|
|
dispatch(setIpfsCheckedState(value)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const modal = (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => { |
|
|
|
const modal = (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => { |
|
|
|
setModals(modals => { |
|
|
|
setModals(modals => { |
|
|
|
modals.push({ message, title, okLabel, okFn, cancelLabel, cancelFn }) |
|
|
|
modals.push({ message, title, okLabel, okFn, cancelLabel, cancelFn }) |
|
|
@ -254,6 +259,8 @@ export function RunTabUI (props: RunTabProps) { |
|
|
|
mainnetPrompt={mainnetPrompt} |
|
|
|
mainnetPrompt={mainnetPrompt} |
|
|
|
tooltip={toast} |
|
|
|
tooltip={toast} |
|
|
|
loadAddress={loadAddress} |
|
|
|
loadAddress={loadAddress} |
|
|
|
|
|
|
|
networkName={runTab.networkName} |
|
|
|
|
|
|
|
setNetworkName={setNetworkNameFromProvider} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<RecorderUI |
|
|
|
<RecorderUI |
|
|
|
gasEstimationPrompt={gasEstimationPrompt} |
|
|
|
gasEstimationPrompt={gasEstimationPrompt} |
|
|
@ -282,7 +289,7 @@ export function RunTabUI (props: RunTabProps) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<ModalDialog id='fileSystem' { ...focusModal } handleHide={ handleHideModal } /> |
|
|
|
<ModalDialog id='fileSystem' { ...focusModal } handleHide={ handleHideModal } /> |
|
|
|
<Toaster message={focusToaster} handleHide={handleToaster} /> |
|
|
|
<Toaster message={focusToaster} handleHide={handleToaster} /> |
|
|
|
<PublishToStorage api={props.plugin} resetStorage={resetStorage} storage={publishData.storage} contract={publishData.contract} /> |
|
|
|
<PublishToStorage id='udapp' api={props.plugin} resetStorage={resetStorage} storage={publishData.storage} contract={publishData.contract} /> |
|
|
|
</Fragment> |
|
|
|
</Fragment> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|