diff --git a/src/boot/errorHandling.js b/src/boot/errorHandling.js
index a00beaf9..0308ab84 100644
--- a/src/boot/errorHandling.js
+++ b/src/boot/errorHandling.js
@@ -23,7 +23,7 @@ const errorNotification = function(error, dismiss = false) {
timeout: dismiss ? 0 : 5000,
message: `${errorStr}`,
actions: dismiss ? [
- { label: this.$t('notification.dismiss_label'), color: 'white' },
+ { label: $t('notification.dismiss_label'), color: 'white' },
] : [],
});
};
@@ -54,6 +54,10 @@ const successNotification = function(message) {
// ---------- new notification layouts ---------------
+let $t = function(message) {
+ return message;
+};
+
class NotificationAction {
constructor(payload) {
this.label = payload.label;
@@ -70,6 +74,13 @@ const infoIcon = require('src/assets/icon--info.svg');
const checkIcon = require('src/assets/icon--check.svg');
const discoIcon = require('src/assets/icon--disconnected.svg');
const warningIcon = require('src/assets/icon--warning.svg');
+const icons = {
+ cross: crossIcon,
+ info: infoIcon,
+ check: checkIcon,
+ disco: discoIcon,
+ warning: warningIcon,
+};
const html = `
@@ -92,11 +103,11 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
// action buttons
const actions = [];
const dismiss_btn = {
- label: this.$t('notification.dismiss_label'),
+ label: $t('notification.dismiss_label'),
class: 'c-notify__action-btn',
};
const link_btn = {
- label: this.$t('notification.success_see_trx_label'),
+ label: $t('notification.success_see_trx_label'),
color: 'positive',
iconRight: 'launch',
class: 'c-notify__action-btn',
@@ -105,7 +116,7 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
},
};
const details_btn = {
- label: this.$t('notification.error_see_details_label'),
+ label: $t('notification.error_see_details_label'),
class: 'c-notify__action-btn ',
handler: () => {
let content = '';
@@ -135,14 +146,14 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
Dialog.create({
class: 'c-notify__dialog',
- title: this.$t('notification.error_details_title'),
+ title: $t('notification.error_details_title'),
message: '
' + content + '',
html: true,
});
},
};
const action_btn = {
- label: this.$t(payload?.label ?? '') ?? this.$t('notification.error_see_details_label'),
+ label: $t(payload?.label ?? '') ?? $t('notification.error_see_details_label'),
color: payload?.color ?? type === 'error' ? 'negative' : 'positive',
iconRight: payload?.iconRight,
class: 'c-notify__action-btn ' + payload?.class ? payload?.class : '',
@@ -172,7 +183,7 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
actions.splice(0, actions.length);
}
- let final_message = '
' + this.$t(message.toString() ?? '') + '';
+ let final_message = '
' + $t(message.toString() ?? '') + '';
if (Array.isArray(message)) {
final_message = message.map(
m => ` <${m.tag ?? 'span'} class="${m.class}">${m.text}${m.tag ?? 'span'}> `,
@@ -208,7 +219,7 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
'{random}': random,
'{remember}': remember,
'{message}': final_message,
- '{remember-my-choice}': this.$t('notification.dont_show_message_again'),
+ '{remember-my-choice}': $t('notification.dont_show_message_again'),
};
const finalHtml = replaceAllOccurrences(html, replacements);
@@ -225,75 +236,75 @@ const notifyMessage = function(type, icon, title, message, payload, remember = '
};
const notifySuccessTransaction = function(link) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'success',
checkIcon,
- this.$t('notification.success_title_trx').toUpperCase(),
- this.$t('notification.success_message_trx'),
+ $t('notification.success_title_trx').toUpperCase(),
+ $t('notification.success_message_trx'),
link,
);
};
const notifySuccessMessage = function(message, payload) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'success',
checkIcon,
- this.$t('notification.success_title_trx').toUpperCase(),
+ $t('notification.success_title_trx').toUpperCase(),
message,
payload,
);
};
const notifySuccessCopy = function() {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'success',
checkIcon,
- this.$t('notification.success_title_copied').toUpperCase(),
- this.$t('notification.success_message_copied'),
+ $t('notification.success_title_copied').toUpperCase(),
+ $t('notification.success_message_copied'),
);
};
const notifyFailure = function(message, payload) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'error',
crossIcon,
- this.$t('notification.error_title').toUpperCase(),
+ $t('notification.error_title').toUpperCase(),
message,
payload,
);
};
const notifyFailureWithAction = function(message, payload) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'error',
crossIcon,
- this.$t('notification.error_title').toUpperCase(),
+ $t('notification.error_title').toUpperCase(),
message,
new NotificationAction(payload),
);
};
const notifyWarningWithAction = function(message, payload) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'error',
warningIcon,
- this.$t('notification.warning_title').toUpperCase(),
+ $t('notification.warning_title').toUpperCase(),
message,
new NotificationAction(payload),
);
};
const notifyDisconnected = function() {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'error',
discoIcon,
- this.$t('notification.error_title_disconnect'),
- this.$t('notification.error_message_disconnect'),
+ $t('notification.error_title_disconnect'),
+ $t('notification.error_message_disconnect'),
);
};
const notifyNeutralMessage = function(message) {
- return notifyMessage.bind(this)(
+ return notifyMessage (
'neutral',
null,
null,
@@ -308,7 +319,7 @@ const notifyRememberInfo = function(title, message, payload, key) {
if (dismissed[id]) {
return;
}
- const notification = notifyMessage.bind(this)(
+ const notification = notifyMessage (
'info',
infoIcon,
title,
@@ -342,25 +353,25 @@ const notifyRememberInfo = function(title, message, payload, key) {
export default boot(({ app, store }) => {
- app.config.globalProperties.$errorNotification = errorNotification.bind(store);
- app.config.globalProperties.$unexpectedErrorNotification = unexpectedErrorNotification.bind(store);
- app.config.globalProperties.$warningNotification = warningNotification.bind(store);
- app.config.globalProperties.$successNotification = successNotification.bind(store);
+ app.config.globalProperties.$errorNotification = errorNotification;
+ app.config.globalProperties.$unexpectedErrorNotification = unexpectedErrorNotification;
+ app.config.globalProperties.$warningNotification = warningNotification;
+ app.config.globalProperties.$successNotification = successNotification;
store['$errorNotification'] = app.config.globalProperties.$errorNotification;
store['$unexpectedErrorNotification'] = app.config.globalProperties.$unexpectedErrorNotification;
store['$warningNotification'] = app.config.globalProperties.$warningNotification;
store['$successNotification'] = app.config.globalProperties.$successNotification;
// new Message notifications handlers
- app.config.globalProperties.$notifySuccessTransaction = notifySuccessTransaction.bind(store);
- app.config.globalProperties.$notifySuccessMessage = notifySuccessMessage.bind(store);
- app.config.globalProperties.$notifySuccessCopy = notifySuccessCopy.bind(store);
- app.config.globalProperties.$notifyFailure = notifyFailure.bind(store);
- app.config.globalProperties.$notifyFailureWithAction = notifyFailureWithAction.bind(store);
- app.config.globalProperties.$notifyWarningWithAction = notifyWarningWithAction.bind(store);
- app.config.globalProperties.$notifyDisconnected = notifyDisconnected.bind(store);
- app.config.globalProperties.$notifyNeutralMessage = notifyNeutralMessage.bind(store);
- app.config.globalProperties.$notifyRememberInfo = notifyRememberInfo.bind(store);
+ app.config.globalProperties.$notifySuccessTransaction = notifySuccessTransaction;
+ app.config.globalProperties.$notifySuccessMessage = notifySuccessMessage;
+ app.config.globalProperties.$notifySuccessCopy = notifySuccessCopy;
+ app.config.globalProperties.$notifyFailure = notifyFailure;
+ app.config.globalProperties.$notifyFailureWithAction = notifyFailureWithAction;
+ app.config.globalProperties.$notifyWarningWithAction = notifyWarningWithAction;
+ app.config.globalProperties.$notifyDisconnected = notifyDisconnected;
+ app.config.globalProperties.$notifyNeutralMessage = notifyNeutralMessage;
+ app.config.globalProperties.$notifyRememberInfo = notifyRememberInfo;
store['$notifySuccessTransaction'] = app.config.globalProperties.$notifySuccessTransaction;
store['$notifySuccessMessage'] = app.config.globalProperties.$notifySuccessMessage;
store['$notifySuccessCopy'] = app.config.globalProperties.$notifySuccessCopy;
@@ -373,7 +384,7 @@ export default boot(({ app, store }) => {
// transaction notifications handlers
store['$t'] = app.config.globalProperties.$t;
-
+ $t = app.config.globalProperties.$t;
});
export {
@@ -386,7 +397,11 @@ export {
notifySuccessCopy,
notifyFailure,
notifyFailureWithAction,
+ notifyWarningWithAction,
notifyDisconnected,
notifyNeutralMessage,
notifyRememberInfo,
+ notifyMessage,
+ icons,
+ NotificationAction,
};
diff --git a/src/components/AddressField.vue b/src/components/AddressField.vue
index d23f71aa..d2f63945 100644
--- a/src/components/AddressField.vue
+++ b/src/components/AddressField.vue
@@ -7,13 +7,9 @@ import { getIcon } from 'src/lib/token-utils';
import { toChecksumAddress } from 'src/lib/utils';
import CopyButton from 'components/CopyButton.vue';
+import { useStore } from 'vuex';
const props = defineProps({
- highlightAddress: {
- type: String,
- required: false,
- default: '',
- },
address: {
type: String,
required: true,
@@ -38,9 +34,12 @@ const props = defineProps({
type: Boolean,
default: false,
},
+ useHighlight: {
+ type: Boolean,
+ default: true,
+ },
});
-const emit = defineEmits(['highlight']);
const displayName = ref('');
const fullName = ref(toChecksumAddress(props.address));
@@ -61,7 +60,9 @@ const restart = async () => {
await getDisplay();
};
-
+const $store = useStore();
+const setHighlightAddress = (method: string) => props.useHighlight ? $store.dispatch('general/setHighlightAddress', method) : null;
+const highlightAddress = computed(() => props.useHighlight ? $store.state.general.highlightAddress : '');
watch(() => props.address, async () => {
restart();
@@ -90,6 +91,7 @@ const getDisplay = async () => {
return;
}
let address = toChecksumAddress(props.address);
+ fullName.value = address;
if (contractName.value) {
if(tokenList.value?.tokens){
tokenList.value.tokens.forEach((token: any) => {
@@ -125,18 +127,14 @@ const loadContract = async () => {
}
};
-function emitHighlight(val: string) {
- emit('highlight', val);
-}
-
{
width="18"
>
{{ getBalanceDisplay(tokenQty) }}
+
diff --git a/src/components/ContractMoreInfo.vue b/src/components/ContractMoreInfo.vue
index c7d1286b..332772b8 100644
--- a/src/components/ContractMoreInfo.vue
+++ b/src/components/ContractMoreInfo.vue
@@ -36,6 +36,7 @@ const props = defineProps({
{
-
+
{
margin-bottom: 0.75rem !important;
margin-left: 1rem;
}
+
+ .q-item__label {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
+
diff --git a/src/components/InternalTransactionFlatTable.vue b/src/components/InternalTransactionFlatTable.vue
new file mode 100644
index 00000000..e6bd33ae
--- /dev/null
+++ b/src/components/InternalTransactionFlatTable.vue
@@ -0,0 +1,629 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ col.label }}
+
+ {{ $t('pages.internal_txns') }}
+
+
+
+ {{ col.label }}
+
+
+
+
+ {{ allExpanded ? $t('components.collapse_all') : $t('components.expand_all') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ props.row.type }}
+
+
+
+
+
+
+ {{ $t(`components.transaction.${getDirection(address, props.row)}`).toUpperCase() }}
+
+
+
+
+
+
+
+
+
+ {{ props.row.traces.length }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ trace.type }}
+
+
+
+
+
+
+ {{ $t(`components.transaction.${getDirection(address, trace)}`).toUpperCase() }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/InternalTransactionTable.vue b/src/components/InternalTransactionTable.vue
index 8a992698..4e16c2ee 100644
--- a/src/components/InternalTransactionTable.vue
+++ b/src/components/InternalTransactionTable.vue
@@ -187,7 +187,7 @@ export default {
'/transaction/' + transaction.hash + '/internal?limit=1000&sort=ASC&offset=0&includeAbi=1',
);
for(const trace of [...traces.data.results]){
- trace.hash = trace.transaction_hash;
+ trace.hash = trace.transactionHash;
}
transaction.traces = traces.data?.results;
transaction.contract = contract;
diff --git a/src/components/MethodField.vue b/src/components/MethodField.vue
index 3459ad1c..faa92f0b 100644
--- a/src/components/MethodField.vue
+++ b/src/components/MethodField.vue
@@ -3,15 +3,11 @@ import { computed, ref, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { ZERO_ADDRESSES } from 'src/lib/utils';
+import { useStore } from 'vuex';
const { t: $t } = useI18n();
const props = defineProps({
- highlightMethod: {
- type: String,
- required: false,
- default: '',
- },
trx: {
type: Object as () => {
parsedTransaction?: {
@@ -38,13 +34,19 @@ const props = defineProps({
type: Object,
default: () => null,
},
+ useHighlight: {
+ type: Boolean,
+ default: true,
+ },
});
-const emit = defineEmits(['highlight']);
-
const methodName = ref('');
const nativeTooltipText = ref('');
+const $store = useStore();
+const setHighlightMethod = (method: string) => props.useHighlight ? $store.dispatch('general/setHighlightMethod', method) : null;
+const highlightMethod = computed(() => props.useHighlight ? $store.state.general.highlightMethod : '');
+
const methodSignature = computed(() => {
if (props.trx.input && props.trx.input !== '0x') {
// the first 10 characters of the input data are the method signature, including leading '0x'
@@ -108,10 +110,6 @@ const setValues = async () => {
methodName.value = props.trx.parsedTransaction.name;
}
};
-
-function emitHighlight(val: string) {
- emit('highlight', val);
-}
@@ -121,8 +119,8 @@ function emitHighlight(val: string) {
'c-method--highlight': [methodName, methodSignature].includes(highlightMethod) && highlightMethod !== '',
'c-method--full-text': fullText,
}"
- @mouseenter="emitHighlight(methodName || methodSignature)"
- @mouseleave="emitHighlight('')"
+ @mouseenter="setHighlightMethod(methodName || methodSignature)"
+ @mouseleave="setHighlightMethod('')"
>
{{ displayText }}
diff --git a/src/components/NftTransfersTable.vue b/src/components/NftTransfersTable.vue
index 7892f5d9..f67c82d8 100644
--- a/src/components/NftTransfersTable.vue
+++ b/src/components/NftTransfersTable.vue
@@ -162,11 +162,6 @@ const truncatedId = (id: string) => {
}
};
-const highlightAddress = ref('');
-function setHighlightAddress(val: string) {
- highlightAddress.value = val;
-}
-
const getPath = (settings: { pagination: Pagination }) => {
const { page, rowsPerPage, descending } = settings.pagination;
let path = `/account/${props.address}/transfers?limit=${
@@ -394,8 +389,6 @@ onMounted(() => {
:key="props.row.from"
:address="props.row.from"
:truncate="12"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -404,8 +397,6 @@ onMounted(() => {
:key="props.row.to"
:address="props.row.to"
:truncate="12"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -432,8 +423,6 @@ onMounted(() => {
:key="props.row.contract.address"
:address="props.row.contract.address"
:truncate="16"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
diff --git a/src/components/Token/ApprovalList.vue b/src/components/Token/ApprovalList.vue
index d45c9803..66aa1c61 100644
--- a/src/components/Token/ApprovalList.vue
+++ b/src/components/Token/ApprovalList.vue
@@ -490,7 +490,12 @@ export default {
-
+
@@ -553,6 +558,7 @@ export default {
:key="props.row.contract.address + 'contract'"
:address="props.row.contract.address"
:truncate="18"
+ :useHighlight="false"
/>
diff --git a/src/components/Token/HolderList.vue b/src/components/Token/HolderList.vue
index fbd1ce44..d574ba99 100644
--- a/src/components/Token/HolderList.vue
+++ b/src/components/Token/HolderList.vue
@@ -165,7 +165,12 @@ export default {
-
+
diff --git a/src/components/Token/NFTList.vue b/src/components/Token/NFTList.vue
index f35a9238..38ed1253 100644
--- a/src/components/Token/NFTList.vue
+++ b/src/components/Token/NFTList.vue
@@ -3,6 +3,7 @@
import { ref, watch, onMounted, onBeforeMount } from 'vue';
import { useI18n } from 'vue-i18n';
import { indexerApi } from 'src/boot/telosApi';
+import { notifyMessage, icons, NotificationAction } from 'src/boot/errorHandling';
import { ALLOWED_VIDEO_EXTENSIONS } from 'src/lib/utils';
import AddressField from 'components/AddressField.vue';
@@ -10,6 +11,8 @@ import BlockField from 'components/BlockField.vue';
import { NFT, NFT_TYPE } from 'src/types/NFT';
import { QTableProps } from 'quasar';
+
+
const allowedFilters = ['contract', 'account'];
const { t : $t } = useI18n();
@@ -213,6 +216,25 @@ function getPath(type: string) {
}
return `/${queryFilter}/${props.address}/nfts?type=${type}&includeAbi=true&limit=10000&forceMetadata=1&includePagination=true`;
}
+
+function confirmDownloadImage(imageData: string, name: string) {
+ notifyMessage (
+ 'success',
+ icons.info,
+ $t('components.download_image'),
+ $t('components.confirm_download_image'),
+ new NotificationAction({
+ label: $t('components.confirm'),
+ handler: () => {
+ // download image
+ const link = document.createElement('a');
+ link.href = imageData;
+ link.download = name;
+ link.click();
+ },
+ }),
+ );
+}
@@ -333,14 +355,13 @@ function getPath(type: string) {
:alt="props.row.metadata?.name"
/>
-
-
-
+ class="cursor-pointer"
+ :src="props.row.metadata?.image"
+ :alt="props.row.metadata?.name"
+ @click="confirmDownloadImage(props.row.metadata?.image, props.row.metadata?.name)"
+ />
-
+
{{ $t('components.nfts.ipfs') }}
@@ -466,4 +487,7 @@ function getPath(type: string) {
display: flex;
align-items: center;
}
+.cursor-pointer {
+ cursor: pointer;
+}
diff --git a/src/components/Token/TokenGridElement.vue b/src/components/Token/TokenGridElement.vue
index aa160ac0..8b124edf 100644
--- a/src/components/Token/TokenGridElement.vue
+++ b/src/components/Token/TokenGridElement.vue
@@ -41,6 +41,7 @@ export default {
:address="element.address"
:name="symbol"
class="q-mb-sm"
+ :useHighlight="false"
/>
diff --git a/src/components/Token/TokenTable.vue b/src/components/Token/TokenTable.vue
index 760e1b72..6bad136f 100644
--- a/src/components/Token/TokenTable.vue
+++ b/src/components/Token/TokenTable.vue
@@ -54,9 +54,6 @@ export default {
},
methods: {
...mapActions('general', ['toggleDisplayDecimals']),
- async showEntry(token) {
- console.log('showEntry', token);
- },
},
};
@@ -94,12 +91,17 @@ export default {
-
+
-
+
{{ props.row.symbol }}
diff --git a/src/components/Transaction/ERCTransferList.vue b/src/components/Transaction/ERCTransferList.vue
index 417e4a8f..00c8b408 100644
--- a/src/components/Transaction/ERCTransferList.vue
+++ b/src/components/Transaction/ERCTransferList.vue
@@ -141,10 +141,6 @@ const loadTransfers = async () => {
emit('transfers-count', count);
};
-function setHighlightAddress(val: string) {
- emit('highlight', val);
-}
-
watch(() => props.logs, async (newTrx) => {
if (newTrx) {
await loadTransfers();
@@ -169,8 +165,6 @@ watch(() => props.logs, async (newTrx) => {
copy
:address="transfer.from"
:truncate="15"
- :highlightAddress="props.highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -179,8 +173,6 @@ watch(() => props.logs, async (newTrx) => {
copy
:address="transfer.to"
:truncate="15"
- :highlightAddress="props.highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -192,8 +184,6 @@ watch(() => props.logs, async (newTrx) => {
diff --git a/src/components/Transaction/TLOSTransferList.vue b/src/components/Transaction/TLOSTransferList.vue
index 6fd66ad4..45008921 100644
--- a/src/components/Transaction/TLOSTransferList.vue
+++ b/src/components/Transaction/TLOSTransferList.vue
@@ -65,10 +65,6 @@ const loadTransfers = async () => {
emit('transfers-count', tlos_transfers.value.length);
};
-function setHighlightAddress(val: string) {
- emit('highlight', val);
-}
-
watch(() => props.transaction, async (newTrx) => {
if (newTrx) {
await loadTransfers();
@@ -93,8 +89,6 @@ watch(() => props.transaction, async (newTrx) => {
copy
:address="transfer.from"
:truncate="15"
- :highlightAddress="props.highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -103,8 +97,6 @@ watch(() => props.transaction, async (newTrx) => {
copy
:address="transfer.to"
:truncate="15"
- :highlightAddress="props.highlightAddress"
- @highlight="setHighlightAddress"
/>
diff --git a/src/components/TransactionAction.vue b/src/components/TransactionAction.vue
index a7693817..20fa0631 100644
--- a/src/components/TransactionAction.vue
+++ b/src/components/TransactionAction.vue
@@ -30,8 +30,6 @@ const props = defineProps({
},
});
-const emit = defineEmits(['highlight']);
-
const methodName = ref('');
const nativeTooltipText = ref('');
@@ -67,9 +65,6 @@ const setValues = async () => {
}
};
-function setHighlightAddress(val: string) {
- emit('highlight', val);
-}
@@ -89,19 +84,15 @@ function setHighlightAddress(val: string) {
Function by
on
diff --git a/src/components/TransactionField.vue b/src/components/TransactionField.vue
index 30358179..a97dbe34 100644
--- a/src/components/TransactionField.vue
+++ b/src/components/TransactionField.vue
@@ -1,6 +1,7 @@
-
+
{{ $t('components.txn_failed') }}
-
+
{{ text }}
{{ transactionHash }}
@@ -59,9 +81,24 @@ const text = computed(() => {
.c-transaction-field{
display: inline-flex;
align-items: center;
+
&__icon{
margin-right: .1rem;
padding-bottom: .05rem;
}
+
+ &__link {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ position: relative;
+
+ &--highlight {
+ background: rgba($secondary, 0.2);
+ outline: 1px dashed $secondary;
+ border-radius: 5px;
+ }
+ }
+
}
diff --git a/src/components/TransactionOverview.vue b/src/components/TransactionOverview.vue
index f8ca8aca..9f499741 100644
--- a/src/components/TransactionOverview.vue
+++ b/src/components/TransactionOverview.vue
@@ -31,7 +31,6 @@ const blockNumber = computed(() => props.trx?.blockNumber);
const timestamp = computed(() => props.trx?.timestamp || 0);
const blockData = ref(null);
const transactionIndex = ref(-1);
-const highlightAddress = ref('');
const toAddress = ref('');
const isAContractDeployment = ref(false);
@@ -52,10 +51,6 @@ const loadBlockData = async () => {
}
};
-function setHighlightAddress(val: string) {
- highlightAddress.value = val;
-}
-
function setERC20TransfersCount(count: number) {
showErc20Transfers.value = count > 0;
}
@@ -170,7 +165,7 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {
@@ -224,8 +219,6 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {
@@ -250,8 +243,6 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {
:key="'trx-from-'+ trx.from"
copy
:address="trx.from"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -276,8 +267,6 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {
copy
:address="toAddress"
:is-contract-trx="true"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
Created ]
@@ -287,8 +276,6 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {
copy
:address="toAddress"
:is-contract-trx="!!trx?.contract"
- :highlightAddress="highlightAddress"
- @highlight="setHighlightAddress"
/>
@@ -315,8 +302,6 @@ watch(() => showMoreDetails.value, (newShowMoreDetails) => {