exporter

command module
v0.0.0-...-794fd5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL