Public
Edited
Mar 8, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
wallets = {
const wallets = [];

const day = new Date().getDate();
const month = new Date().getMonth();

for (const wallet in synodData.wallets) {
var w = synodData.wallets[wallet];

if (wallet != "tz1hkKqGk3fPPYroNagWpWsxxV3x8P8jqwp9") {
var list = "";

w.collection.forEach((objkt, id) => {
list += "<li>" + objkt.metadata.name + "</li>";
});

var name = w.profile.name;
if (!name) {
name = wallet;
}

const wdate = new Date(w.anaversary);

let todayanav = false;

if (wdate.getDate() === day && wdate.getMonth() === month) {
todayanav = true;
}

var Anaversary;
Anaversary = new Date(w.anaversary).toLocaleDateString();

if (Anaversary === "Invalid Date") {
Anaversary = "[NA]";
}

wallets.push({
Name: name,
Wallet: wallet,
Count: w.collection.size,
Anaversary,
Tokens: list,
Affiliation: w.profile.affiliation ? w.profile.affiliation : "",
γp: w.totalGP,
todayanav
});
}
}

const sortedWallets = wallets
.slice()
.sort((a, b) => d3.descending(a.γp, b.γp));

for (let i = 0; i < sortedWallets.length; ++i) {
sortedWallets[i].Rank = parseInt(i + 1);
}
//sorted wallets means loading is over
// mutable loading = false;

return sortedWallets;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//dataTest = synodData.wallets["tz1hkKqGk3fPPYroNagWpWsxxV3x8P8jqwp9"]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
multiuser = htl.html`<iframe src="https://anaver.se/multistream.html" width="600px" height="200px" style="outline:none;border:0px">}`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more