Solv Vouchers Uses The Graph to Power Its New Marketplace

This new development allows faster and more accurate on-chain price feeds.

Solv Protocol Team
Jul 22 · 3 min read

Solv Vouchers is a platform that allows you to create, manage or trade locked tokens for projects, where users can either list their vouchers for sale or purchase and trade vouchers of interest.

Solv Vouchers helps projects mint their own vouchers as vested tokens, currently in the form of financial NFTs. Vouchers can be added within the new marketplace, with Solv Vouchers compatible with ERC-721 token standards, so users can combine or split existing vouchers as well as new ones freshly bought.

With the launch of Solv Vouchers, Solv has also launched a new marketplace interface which shows the collection of available products.

However, considering the various types of vouchers that make up the front-end display and the variety of information that needs to be displayed, it can be quite difficult for users to navigate.

The Graph, which provides a convenient way to access data from the blockchain, has established an efficient solution to deal with this issue. Solv Vouchers will use The Graph to query order lists and trade information, while also helping you to maintain a record of the market.

We’ve been able to translate the event data of smart contracts to data entities on Solv Vouchers, so that any operation in the market can be monitored by The Graph and stored on the database. This allows us to retrieve all open voucher sale orders to the subgraph using the GraphQL API.

Additionally, in order to provide users with a view of their actions in the voucher marketplace, we can make a call to the subgraph, adding in the user’s address as an extra query criterion.

When you’re using a trading market, one of your main priorities is always likely to be the ability to filter orders according to your interests. With the help of The Graph, Solv Vouchers can do this with minimal effort.

We can also make combined queries to the subgraph. For example, the query below will retrieve all sale orders using the supported payment token, ETH, from the first order to the last.

Last but not least, The Graph can be used to track a variety of data statistics. In our subgraph, we have defined a number of statistical models to keep records of the voucher marketplace, including the number of open sale orders, historical transaction records and the daily trading volume, among others. The value of these data entities are updated as new events occur.

With all that being said, retrieving statistics from Solv Vouchers is now super convenient with just a simple query to the subgraph required.

Notable subgraphs like Rinkeby testnet and Mainnet of Ethereum are already on board for this new collaboration. Developers who want to retrieve data from Solv Vouchers can visit the following subgraphs:

Rinkeby: https://thegraph.com/legacy-explorer/subgraph/solv-protocol/solv-vouchers-rinkeby-tnt

Mainnet: https://thegraph.com/legacy-explorer/subgraph/solv-protocol/solv-vouchers

About The Graph

The Graph is the indexing and query layer of the decentralized web. Developers build and publish open APIs, called subgraphs, that applications can query using GraphQL. The Graph currently supports indexing data from Ethereum, IPFS, and PoA with more networks coming soon. To date, over 18,000 subgraphs have been deployed on the hosted service and now subgraphs can be deployed directly on the network! ~20,000 developers have built subgraphs for applications, such as Uniswap, Synthetix, Aragon, Gnosis, Balancer, Livepeer, DAOstack, AAVE, Decentraland, and many others.

Solv Protocol

Solv Protocol is the platform for minting and trading Financial NFTs.

Solv Protocol

Solv is a DeFi protocol which has created the first ever vNFT token standard, designed for the future of DeFi & Financial NFT’s

Solv Protocol Team

Written by

The DeFi platform for creating, managing, and trading Financial NFTs. https://t.me/SolvProtocol

Solv Protocol

Solv is a DeFi protocol which has created the first ever vNFT token standard, designed for the future of DeFi & Financial NFT’s