|
|
|
@ -115,6 +115,10 @@ export function UniversalDappUI(props: UdappProps) { |
|
|
|
|
props.removeInstance(props.index) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const saveContract = () => { |
|
|
|
|
console.log('save is clicked') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const runTransaction = (lookupOnly, funcABI: FuncABI, valArr, inputsValues, funcIndex?: number) => { |
|
|
|
|
const functionName = funcABI.type === 'function' ? funcABI.name : `(${funcABI.type})` |
|
|
|
|
const logMsg = `${lookupOnly ? 'call' : 'transact'} to ${props.instance.name}.${functionName}` |
|
|
|
@ -227,10 +231,16 @@ export function UniversalDappUI(props: UdappProps) { |
|
|
|
|
{props.instance.name} at {shortenAddress(address)} ({props.context}) |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div className="btn"> |
|
|
|
|
<div className="btn" style={{padding: '0.15rem'}}> |
|
|
|
|
<CopyToClipboard tip={intl.formatMessage({id: 'udapp.copy'})} content={address} direction={'top'} /> |
|
|
|
|
</div> |
|
|
|
|
<div className="btn" style={{padding: '0.15rem', marginLeft: '-0.5rem'}}> |
|
|
|
|
<CustomTooltip placement="top" tooltipClasses="text-nowrap" tooltipId="udapp_udappSaveTooltip" tooltipText={<FormattedMessage id="udapp.tooltipText14" />}> |
|
|
|
|
<i className="far fa-save p-2" aria-hidden="true" data-id="universalDappUiUdappSave" onClick={saveContract}></i> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<CustomTooltip placement="right" tooltipClasses="text-nowrap" tooltipId="udapp_udappCloseTooltip" tooltipText={<FormattedMessage id="udapp.tooltipText7" />}> |
|
|
|
|
<i className="udapp_closeIcon m-1 fas fa-times align-self-center" aria-hidden="true" data-id="universalDappUiUdappClose" onClick={remove}></i> |
|
|
|
|
</CustomTooltip> |
|
|
|
|