Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 17, 2023
1 parent ad4ea14 commit 5b907b0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -926,9 +926,24 @@ <h4>Welcome</h4>
},

async syncNames(db, provider) {
const owners = {};
const contracts = {};
const spenders = {};
// console.log("syncNames: " + JSON.stringify(event));
for (const event of this.events) {
console.log("syncNames: " + JSON.stringify(event));
if (!(event.owner in owners)) {
owners[event.owner] = true;
}
if (!(event.contract in contracts)) {
contracts[event.contract] = true;
}
if (!(event.spender in spenders)) {
spenders[event.spender] = true;
}
}
console.log("owners: " + JSON.stringify(Object.keys(owners)));
console.log("contracts: " + JSON.stringify(Object.keys(contracts)));
console.log("spenders: " + JSON.stringify(Object.keys(spenders)));

},

Expand Down

0 comments on commit 5b907b0

Please sign in to comment.