Skip to content

crescent-network/exporter

Repository files navigation

Exporter

This repository parses exported genesis state at specific block height to extract data for LUNA and UST holders.

Background

$UST peg failure leads to the following revival plan - Terra Ecosystem Revival Plan 2 AMENDED. Terraform Labs are planning to fork the currently running chain and distribute new LUNA coins to LUNA & UST holders based on the token distribution outlined in that proposal. Read the revival plan for more context. Some LUNA and UST holders in Crescent Network couldn't transfer their tokens back to Terra chain due to the fact that IBC channel is closed at some point for security reason. That's why this repository is created to provide snapshot data at certain block height to Terraform Labs so that they allocate new LUNA coins for Crescent LUNA and UST holders.

Version

Block Heights

Usage

# Uncompress crescent-exported-xxxxxx.json file
tar -xvf crescent-exported-xxxxxx.tar.gz

# Run the program. This outputs .csv file that contains snapshot data.
go run main.go

Result File Description

It is important to note that Terra's bip44 coin type 330 can't be derived from just Crescent address. address_terra is just conversion of crescent address that uses coin type 118.

Column Type Description
address string The bech32 prefix address for Crescent (CoinType 118)
address_terra string The bech32 prefix address for Terra (CoinType 118)
luna sdk.Coin The total LUNA Coin for an address
ust sdk.Coin The total UST Coin for an address
holder bool Whether or not the address is holding either LUNA or UST in their balance
liquidity_provider bool Whether or not the address is liquidity provider
farmer bool Whether or not the address is farming staker

About

🔨 A program to extract snapshot data for Crescent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages