Open-sourcing Teiki Index

Teiki
3 min readFeb 1, 2023

--

The Spirit of Open-Source

Transparency and open-source development brought us at Teiki to blockchain in the first place. As such, we’re fully committed to open-sourcing most of our technology: absolute transparency is essential to anything built to be decentralised.

That’s why we’ve established an open-sourcing roadmap. By open-sourcing at least one piece of our tech every month in pace with our ongoing development work, we gain the freedom to prototype without friction in private, and we maintain our advantage as an agile start-up developing at the cutting edge of the blockchain industry.

In December 2022, we open-sourced the Teiki protocol. And we’ve just marked the end of January 2023 by open-sourcing the Teiki Index! 🎉

What does the Teiki Index do?

A blockchain indexer transforms raw chain data into more structured forms, allowing apps to query data much faster. For example, to find out how many projects are created on Teiki, an indexer can watch the chain and add +1 whenever there is a new project creation transaction. Without an indexer, an app would need to re-count all the creation transactions from the beginning of the blockchain history every time.

Aside from UI data rendered on the screen, indexers help apps query data to build transactions. For example, an app needs to know the backing UTxO to build a transaction withdrawing it for the Backer.

Open-sourcing the Teiki Index allows everyone to query protocol data in SQL easily. For instance, after spinning up the indexing infrastructure with a simple docker-compose up command, one can start querying and playing with our testnet data.

teiki=# \dt chain.*
List of relations
Schema | Name | Type | Owner
--------+--------------------+-------+------------
chain | backing | table | postgres
chain | block | table | postgres
chain | dedicated_treasury | table | postgres
chain | open_treasury | table | postgres
chain | output | table | postgres
chain | project | table | postgres
chain | project_detail | table | postgres
chain | project_script | table | postgres
chain | protocol_params | table | postgres
chain | script | table | postgres
chain | shared_treasury | table | postgres
chain | teiki_plant | table | postgres

--------------------------------------------------

teiki=# select max(total_backing_amount) from views.project_summary;
max
-------------
85944500003
(1 row)

Finally, we wrote a lightweight indexing framework to adapt to unique needs. Unlike an existing tool that only indexes chain data, we also index IPFS data, run it through OCR and moderation models, shoot Discord alerts to handle potentially inappropriate content, and more.

Shout-out to Ogmios for providing the chain interface and TypeScript client! 🔥

What’s Next?

In the coming months, we’ll open-source the rest of Teiki Gen I’s tech:

  • Teiki Backend in February.
  • Teiki Frontend in March.
  • Teiki AI in April.

Soon enough, anyone will be able to build custom Teiki front-ends and integrations for specialised use cases. For example, a developer can build a UI to connect musicians and their fans, minting exclusive Backer-only NFTs when backing. Other possibilities include the ability to build embedded UI components for users to back dApps straight from the dApp itself, e.g. at https://app.indigoprotocol.io.

Along with Transparency, Teiki is committed to practising and promoting Decentralisation and Composability, all true values of the blockchain.

Let’s co-grow the future of decentralized crowdfunding on our testnet!

Join Us

Website | Discord | Twitter | Telegram | GitHub

--

--

Teiki
Teiki

Written by Teiki

Teiki is a decentralised crowdfunding protocol for innovation. https://linktr.ee/teikinetwork

No responses yet