Cosmos and Web 3.0

Ethereum bridge

  • ERC20 CHEQ token (eCHEQ) bridge on Ethereum: Completed
To create an ERC20 representation of the Cosmos based CHEQ token we’ve used a bridge. A blockchain bridge or ‘cross-chain bridge’ enables users to transfer assets or any form of data seamlessly from one entirely separate protocol or ecosystem to another (i.e. Solana to Ethereum, or in our case Cosmos to Ethereum and vice versa).
The CHEQ-ERC20 wrapped token can be found here (you can also add it to your MetaMask wallet through this link — go to profile summary > click ‘more’ > ‘add token to MetaMask’ )

Why did we decide on a bridge to Ethereum?

As we build payment rails for trusted data (more on that below), we want to offer issuers, verifiers (the receivers of trusted data), and holders a choice on the means of settlement. We expect a preference for stablecoins to eliminate the volatility in either pricing or settling payments for trusted data.
Find out more on our learn site below:
CHEQ-ERC20 wrapped token
Learn about cheqd

Airdrop frontend UI and backend

  • Airdrop UI frontend: Completed
  • Airdrop distribution backend: Completed

Context

We’ve open sourced the community airdrop rewards site which is built using Cloudflare Pages and designed it to be highly scalable.
Airdrop reward sites need to be more resilient to traffic spikes than most websites because, when announced, community members will tend to flock to the site to claim their rewards generating a large spike in traffic, followed by a period of much lower traffic. This type of traffic pattern can make prepping the server to host airdrop claim websites particularly difficult.
For example, many projects will choose to purchase a large server capacity to prevent server lag, whilst others may simply become overwhelmed with the traffic
Through using Cloudflare Pages one-to-one scaling, we made our airdrop reward site far cheaper, ensured spikes were handled with efficiency, and the likelihood of server-lag or timeouts was greatly decreased.
Check this out below:
GitHub - cheqd/airdrop-ui: Airdrop Website for Cheqd Network
GitHub

Miscellaneous Cosmos tools

Bulk convertor for cross-chain Cosmos addresses

  • Tool for converting Cosmos addresses in bulk: Completed
Our cross-chain address convertor is able to bulk compute the equivalent cross-chain addresses from any Cosmos network to another extremely quickly (100k+ addresses in few minutes instead of many hours). We built this to enable computation across cross-chain entries for our airdrops.
Want to leverage this for your project? Find out more in the link below:
GitHub - cheqd/cosmjs-cli-converter: A simple tool to convert Cosmos SDK addresses from one network to another in a batch
GitHub
Cosmos cross-chain address convertor

Cosmos Data APIs

  • Total supply API
  • Circulating Supply API
  • Vesting Account Balance API
  • Liquid Account Balance API
  • Total Account Balance API
We found on our journey that there’s a LOT of stuff that we needed APIs for, but couldn’t directly fetch from base Cosmos SDK’s.
This collection of custom APIs can be deployed as a @Cloudflare Worker or compatible serverless platforms. APIs include:
  1. 1.
    Total Supply
  2. 2.
    Circulating Supply
  3. 3.
    Vesting Account Balance
  4. 4.
    Liquid Account Balance
  5. 5.
    Total Account Balance

Total Supply

Crypto tracking websites such as CoinMarketCap and Coin Gecko require an API endpoint for reporting the total supply of tokens in the main/primary token denomination.
While this figure is available from CosmosSDK’s built-in REST endpoint, this returns a JSON in the lowest token denomination, which cannot be parsed by CoinMarketCap / CoinGecko.

Circulating Supply

Likewise these sites require the circulating supply of tokens in the primary token denomination. This figure is not available from any Cosmos SDK API, because the criteria for determining circulating vs "non-circulating" accounts is defined by CoinMarketCap
This API calculates the circulating supply by subtracting the account balances of a defined list of wallet addresses ("circulating supply watchlist").

Vesting Account Balance

We noticed that there was no CosmosSDK API that returns balances that are not yet vested for continuous or delayed vesting accounts.
This is useful for any Cosmos project managing vesting wallets perhaps for team members or investors

Liquid Account Balance

Our Liquid Account Balance API is used to get the continuous/delayed vesting accounts that can be converted to liquid balances.
This ones effective when checking the liquid amount of a wallet that has vesting tokens

Total Account Balance

Finally, our Total Account Balance API helps to retrieve the account balance for a specified account. Of course, you could just find this info in an explorer or use the CosmosSDK REST API however we found we needed something more flexible...
As the Cosmos SDK REST API returns a JSON with the account balances it's hard to parse to something like Google Sheets to run analysis and checks. This API returns a plain number that can be directly plugged into applications, without having to parse JSON.

Why is this valuable

These APIs are useful for multiple reasons: Applying for listings on exchanges requires many of these APIs upfront Auditing and analysing the health of a network Creating forecasts and projections based on network usage Providing transparency of metrics to the network’s community
Through open sourcing these APIs, we want to provide an easy way for all other Cosmos projects to track these metrics, hugely reducing the time and energy needed to source these metrics from scratch.
Further context on each and how you can leverage these APIs in your project can be found through the link below:
GitHub - cheqd/data-api: A collection of APIs for fetching useful custom data from Cosmos SDK blockchains. Built using Cloudflare Workers.
GitHub
Cosmos Data APIs

Interchain Accounts

  • Status: Discovery
The proposed feature of interchain accounts would allow cheqd to utilise the functionality of other Cosmos networks, in conjunction with cheqd functionality. We are exploring the option of using interchain accounts to aid in the architecture of our payment capabilities.
Export as PDF
Copy link
Edit on GitHub
On this page
Ethereum bridge
Why did we decide on a bridge to Ethereum?
Airdrop frontend UI and backend
Context
Miscellaneous Cosmos tools
Bulk convertor for cross-chain Cosmos addresses
Cosmos Data APIs
Interchain Accounts