Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 19, 2023
1 parent e50d2e1 commit 504b038
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ <h5 class="mt-3">Troubleshooting</h5>
</b-link>
</template>
<template #cell(approved)="data">
<!-- {{ data.item }} -->
<span v-if="data.item.type == 'erc20'">
<span v-if="data.item.value.toString().length > 30">
<b-badge pill variant="transparent" v-b-popover.hover="formatDecimals(data.item.value, data.item.decimals)" class="px-0">&infin;</b-badge>
Expand Down Expand Up @@ -776,6 +775,7 @@ <h5 class="mt-3">Troubleshooting</h5>
},

async syncApprovalEvents(provider, latestBlockNumber) {
console.log(moment().format("HH:mm:ss") + " syncApprovalEvents BEGIN");
// ERC-20 Approval (index_topic_1 address owner, index_topic_2 address spender, uint256 value)
// 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
// ERC-721 Approval (index_topic_1 address owner, index_topic_2 address approved, index_topic_3 uint256 tokenId)
Expand Down Expand Up @@ -823,9 +823,11 @@ <h5 class="mt-3">Troubleshooting</h5>
}
localStorage.approvalEvents = JSON.stringify(events);
Vue.set(this, 'events', events);
console.log(moment().format("HH:mm:ss") + " syncApprovalEvents BEGIN");
},

async syncNames(provider) {
console.log(moment().format("HH:mm:ss") + " syncNames BEGIN");
const ownersMap = {};
const contractsMap = {};
const spendersMap = {};
Expand Down Expand Up @@ -913,6 +915,7 @@ <h5 class="mt-3">Troubleshooting</h5>
}
localStorage.approvalAccounts = JSON.stringify(accounts);
Vue.set(this, 'accounts', accounts);
console.log(moment().format("HH:mm:ss") + " syncNames END");
},

// // TODO: Refresh sync
Expand Down Expand Up @@ -979,7 +982,7 @@ <h5 class="mt-3">Troubleshooting</h5>
// },

async syncBlockTimestamps() {
console.log(moment().format("HH:mm:ss") + " syncBlockTimestamps");
console.log(moment().format("HH:mm:ss") + " syncBlockTimestamps BEGIN");
const blockNumbersMap = {};
for (const event of this.events) {
if (!(event.blockNumber in blockNumbersMap)) {
Expand Down Expand Up @@ -1017,6 +1020,7 @@ <h5 class="mt-3">Troubleshooting</h5>
}
localStorage.approvalBlockTimestamps = JSON.stringify(blockTimestamps);
Vue.set(this, 'blockTimestamps', blockTimestamps);
console.log(moment().format("HH:mm:ss") + " syncBlockTimestamps END");
},

async processData(provider) {
Expand Down Expand Up @@ -1071,6 +1075,7 @@ <h5 class="mt-3">Troubleshooting</h5>
localStorage.approvalAccounts = JSON.stringify(accounts);
Vue.set(this, 'accounts', accounts);
// TODO: UI not updating
console.log(moment().format("HH:mm:ss") + " processData END");
},

saveSettings() {
Expand Down

0 comments on commit 504b038

Please sign in to comment.