Skip to content

Instantly share code, notes, and snippets.

View iam4x's full-sized avatar
🐧

iam4x iam4x

🐧
View GitHub Profile
0x2025137a136bea7446deba681cbfc7cf1970840e
0xb7e09a94603f4fd3b67537b4c43584fe1498ae05
0x57dd78cd36e76e2011e8f6dc25cabbaba994494b
0x39475d17bcd20adc540e647dae6781b153fbf3b1
0x07fd7e702ba749ffa49c3a6c17fcd9e6c7b7082a
0x621c5551678189b9a6c94d929924c225ff1d63ab
0xd02928c445d780ea954fe0b6f0be0f6cb9727678
0x9252345e5fb94c8ce2595c51c2c850b35f4572a9
0x162cc7c861ebd0c06b3d72319201150482518185
0x7ca165f354e3260e2f8d5a7508cc9dd2fa009235

Compute only active variants (#1c37673)

The L2Book path used to prepare every supported aggregation variant for every flush, even when no client had subscribed to most of those variants. This made each L2 flush scale with the full variant set instead of the active subscriptions.

This change added subscription-aware tracking for active L2 snapshot parameters. The listener now derives the requested parameters from active L2 subscription keys and only computes those shapes.

let requested_params: HashSet<L2SnapshotParams> =
    active_keys.iter().map(|key| key.params).collect();
#!/bin/bash
DATA_PATH="/root/hl/data"
# Folders to exclude from pruning
# Example: EXCLUDES=("visor_child_stderr" "rate_limited_ips" "node_logs")
EXCLUDES=("visor_child_stderr")
# Log startup for debugging
echo "$(date): Prune script started"
#!/bin/bash
IPS=(
64.31.48.111
64.31.51.137
180.189.55.18
180.189.55.19
34.84.25.59
34.146.230.150
13.230.78.76
id name contract_address ratio floor_price_in_eth
346 Letters 0x614917f589593189ac27ac8b81064cbe450c35e3 1.1668611435239207 3.000000000000000000000000000000
250 E-DAMER 0x14fe23fa6d0260179d1da1b271424f5fec767831 1.3471502590673575 0.890000000000000000000000000000
139 Gutter Dogs 0x6e9da81ce622fb65abf6a8d8040e460ff2543add 1.4619213539074166 2.000000000000000000000000000000
23 Tasty Bones 0x1b79c7832ed9358e024f9e46e9c8b6f56633691b 1.4639025804581038 0.540000000000000000000000000000
400 hausphases 0x5be99338289909d6dbbc57bb791140ef85ccbcab 1.4799238820171265 1.255000000000000000000000000000
233 MutantApeYachtClub 0x60e4d786628fea6478f785a6d7e704777c86a7c6 1.50915154966240950134 23.200000000000000000000000000000
120 Gutter Birds 0x950b9476a4de757bb134483029ac4ec17e739e3a 1.5110881897885508 1.690000000000000000000000000000
298 Karafuru 0xd2f668a8461d6761115daf8aeb3cdf5f40c532c6 1.5132116589485154 2.949900000000000000000000000000
259 BoredApeYachtClub 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d 1.5590894917368257 10
@iam4x
iam4x / roses.js
Last active November 20, 2021 00:37
[
{ name: '0x1', id: 1 },
{ name: '0x58', id: 88 },
{ name: '0x5F', id: 95 },
{ name: '0x6E', id: 110 },
{ name: '0xA3', id: 163 },
{ name: '0xD6', id: 214 },
{ name: '0x116', id: 278 },
{ name: '0x173', id: 371 },
{ name: '0x1EB', id: 491 },
import Web3 from 'web3';
import HDWalletProvider from '@truffle/hdwallet-provider';
const tokenId = 1; // YOUR TOKEN ID
const seed = 'YOUR SEEDPHRASE WITHOUT 0x';
const provider = new Web3.providers.HttpProvider('https://YOUR_ETHEREUM_RPC_NODE');
const localKeyProvider = new HDWalletProvider({
privateKeys: [seed],
providerOrUrl: provider,
[
{
"name": "0x1D",
"description": "Unknown",
"attributes": [
{
"trait_type": "Insight",
"value": "1"
}
],
@iam4x
iam4x / machine.js
Created February 14, 2021 23:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@iam4x
iam4x / cloudSettings
Created October 31, 2019 00:28
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-31T00:28:04.459Z","extensionVersion":"v3.4.3"}