Skip to content

graphprotocol/ens-rainbow

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Importing the rainbow tables

You will need an already initialized graph-node database. You will also need to be able to run psql and connect to the graph-node database. If your database is sharded, this data needs to be imported into the primary database

  1. Download the SQL dump file from Goolge cloud storage: ens_names.sql.gz

  2. Import the dump:

zcat ens_names.sql.gz | psql graph

Data preparation

These are the steps to generate the ens_names.sql.gz file, and are not needed for just importing that data.

Convert ENS's rainbow table data into a SQL script that we can ingest with psql, similar to a plain text dump from pg_dump.

Download input for rainbow tables via gsutil cp gs://ens-files/preimages/* .

Run this as cat preimages-* | cargo run --release | gzip > data.sql.

Takes a while (10 minutes) on my machine and results in a 6GB file (133M entities)

Exporting the prepared data:

pg_dump -c -O --no-tablespaces -t ens_names -f /var/tmp/ens_names.sql.gz -Z9

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published