Terra Tables
[Legacy Documentation, Not Maintained, For Reference Only]
Background of Terra
Blockchain: Terra.
Terra is a Proof of stake chain and can also be used as a Smart contract platform. Terra protocol aims to create a stable priced currency by adopting an elastic monetary policy. Terra is supported by a basket of fiat-pegged, seigniorage share style stable coins which are algorithmically stabilized by its native crypto asset, Luna.
Terra Tables
The Terra table schemas build on the concepts laid out in Flipside's event data model. Terra tables are available in Velocity as the terra
schema. The tables are built based on the terra message, transactions and transition information.
At Flipside database, for Terra, there are two types of tables, one is the Raw Tables and the other one is the Terra Base Tables, clicking the following link to see more details about the tables.
The public Github repo with Terra model source code is here.
Terra Raw Tables:
pageBlockspageMsgspageMsg_eventspageTransactionspageTransitionsTerra Base Tables:
pageLabelspageOracle PricespageTax RatepageDaily BalancespageSwapspageStakingpageRewardGeneral Table Notes
Platform (how are other assets represented)
All assets on-chain are typically represented as an object with a denomination and an amount to differentiate between different assets
Precision (decimals)
0.000001 (10^6)
Fees
Fees can be paid in any Terra currency (Luna, TerraSDT, TerraKRW etc)
We can get fees in the transaction payload
Events
Events or (Msgs) in Tendermint terms can easily be captured when we query for txs in a block
Events are emitted from a "module"
Last updated