- rustlang follow: https://www.rust-lang.org/learn/get-started
- Install sqlx:
cargo install sqlx-cli
- docker / docker-compose
- direnv (to use the .envrc)
- Setup .envrc (See .envrc-example)
- docker-compose up
- Setup db:
sqlx database create
sqlx migrate run
cargo build --release
./target/release/import-rune-txs
Note. total_count should now equal rows in the airdrop.txs db
./target/release/import-atom-txs
Note;
- This API has been somewhat problematic/slow/drops out. Means that this script might need to be run a few time until all records are imported.
1 ./target/release/process-twitter-from-txs-records
Note;
- This will check for the required tweet with a media attachment. It will also save any error message given back from twitter if something fails. Its also
- Due to the twitter rate limiting you might need to run this script a couple of time to make sure all records have been processed.
- This script takes quite sometime to run.
./target/release/import-rune-pool-extract
Note; This will import data into the rune_stakers
table
make import-data-extracts
./target/release/import-token-sale-data < ./extracts/community_token_giveaway_submissions.csv
Note;
- This will clean and import the data and also run the twitter checks at the same time.
- This can take a while to finish and might be stopped by the twitter rate limiter and therefore should be run a couple of times to make sure all data is imported
- Need to do a balance check at the time of the incoming tx ie blockheight
Token comps:
- RUNE txs / Rune Staker pools