Skip to content

Commit

Permalink
Free Pertsev!
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Jun 25, 2024
1 parent 1cff3f4 commit 75a510e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const Search = {
</div>
<div class="mt-0 flex-grow-1">
</div>
<!-- <div v-if="sync.section == null" class="mt-0 pr-1">
<b-button size="sm" @click="exportEvents" :disabled="!coinbase" variant="link" v-b-popover.hover.top="'Export events'"><b-icon-file-earmark-spreadsheet shift-v="+1" font-scale="1.2"></b-icon-file-earmark-spreadsheet></b-button>
</div> -->
<div class="mt-0 flex-grow-1">
</div>
<div class="mt-0 pr-1">
Expand Down Expand Up @@ -755,6 +758,9 @@ const Search = {
async halt() {
store.dispatch('search/setSyncHalt', true);
},
// async exportEvents() {
// logInfo("Search", "methods.exportEvents");
// },
formatTimestamp(ts) {
if (ts != null) {
if (ts > 1000000000000n) {
Expand Down Expand Up @@ -1053,9 +1059,9 @@ const searchModule = {
logInfo("dataModule", "actions.syncSearchDatabase.getLogs - fromBlock: " + fromBlock + ", toBlock: " + toBlock);
try {
const topics = [[
'0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f',
'0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae',
'0x8ce7013e8abebc55c3890a68f5a27c67c3f7efa64e584de5fb22363c606fd340',
'0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f', // NameRegistered (string name, index_topic_1 bytes32 label, index_topic_2 address owner, uint256 cost, uint256 expires)
'0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae', // NameRenewed (string name, index_topic_1 bytes32 label, uint256 cost, uint256 expires)
'0x8ce7013e8abebc55c3890a68f5a27c67c3f7efa64e584de5fb22363c606fd340', // NameWrapped (index_topic_1 bytes32 node, bytes name, address owner, uint32 fuses, uint64 expiry)
// '0xee2ba1195c65bcf218a83d874335c6bf9d9067b4c672f3c3bf16cf40de7586c4',
],
null,
Expand Down Expand Up @@ -1096,7 +1102,7 @@ const searchModule = {
const nameMap = {};
const total = await db.registrations.count();
context.commit('setSyncSection', { section: 'Collating Names', total });
// await db.registrations.orderBy('[label+blockNumber+logIndex]').limit(10).each(e => {
// await db.registrations.orderBy('[label+blockNumber+logIndex]').limit(10000).each(e => {
await db.registrations.orderBy('[label+blockNumber+logIndex]').each(e => {
let label = null;
let expiry = null;
Expand Down

0 comments on commit 75a510e

Please sign in to comment.