diff --git a/docs/data.js b/docs/data.js index 3955793..1ef5a95 100644 --- a/docs/data.js +++ b/docs/data.js @@ -129,7 +129,7 @@ const Data = { const dataModule = { namespaced: true, state: { - DB_PROCESSING_BATCH_SIZE: 1234, + DB_PROCESSING_BATCH_SIZE: 12345, // address => info addresses: {}, @@ -926,7 +926,7 @@ const dataModule = { await context.dispatch('collateRegistrations', parameter); } - if (options.tokens && !options.devThing) { + if ((options.tokens || options.selectedContract) && !options.devThing) { await context.dispatch('syncTokenEvents', parameter); } if (options.timestamps && !options.devThing) { @@ -935,8 +935,7 @@ const dataModule = { if (options.txData && !options.devThing) { await context.dispatch('syncTokenEventTxData', parameter); } - // TODO if ((options.tokens || options.ensExpiries || options.fungiblesMetadata || options.nonFungiblesMetadata) && !options.devThing) { - if ((options.tokens || options.fungiblesMetadata || options.nonFungiblesMetadata) && !options.devThing) { + if ((options.tokens || options.fungiblesMetadata || options.nonFungiblesMetadata || options.selectedContract) && !options.devThing) { await context.dispatch('computeBalances', parameter); await context.dispatch('computeApprovals', parameter); } @@ -1654,7 +1653,7 @@ const dataModule = { let split = false; const maxLogScrapingSize = NETWORKS['' + parameter.chainId].maxLogScrapingSize || null; if (!maxLogScrapingSize || (toBlock - fromBlock) <= maxLogScrapingSize) { - const address = null; + const address = parameter.selectedContract; try { let topics = null; if (section == 0) { diff --git a/docs/nonFungibles.js b/docs/nonFungibles.js index c7bbb66..8dc0881 100644 --- a/docs/nonFungibles.js +++ b/docs/nonFungibles.js @@ -393,6 +393,7 @@ const NonFungibles = { } return results; }, + filteredItems() { const results = (store.getters['data/forceRefresh'] % 2) == 0 ? [] : []; let regex = null; diff --git a/docs/viewTokenContract.js b/docs/viewTokenContract.js index 13e3799..2ed4f79 100644 --- a/docs/viewTokenContract.js +++ b/docs/viewTokenContract.js @@ -52,6 +52,10 @@ const ViewTokenContract = { + + + + @@ -282,6 +286,12 @@ const ViewTokenContract = { console.log(now() + " ERROR ViewTokenContract:methods.handleImage: " + e.message); } }, + async syncTokenContract() { + console.log(now() + " INFO ViewTokenContract:methods.syncTokenContract"); + store.dispatch('data/syncIt', { + selectedContract: this.contract, + }); + }, copyToClipboard(str) { navigator.clipboard.writeText(str); },