DeFi Llama
  • List your project
    • DefiLlama and our methodology
    • How to list a DeFi project
    • How to add a new Blockchain
    • How to write an SDK adapter
    • Functions we've written so you don't have to
      • Staking and Pool2
      • Fork helpers
      • General EVM contract calls
    • What to include as TVL?
    • How to update a project
    • How to write dimensions adapters
    • Emissions dashboard
      • Protocol Files
      • Emission Sections
      • Testing
    • Oracles TVS
  • analysts
    • Data Definitions
  • Chainlist
    • How to change Ethereum's RPC
    • Add a new RPC endpoint
  • FAQs
    • Frequently Asked Questions
  • Coin Prices API
  • Pricing
Powered by GitBook
On this page

Was this helpful?

  1. List your project
  2. How to write dimensions adapters

Testing

Last updated 9 days ago

Was this helpful?

Note (Updated: 2025-05-01): This page might contain outdated information. For the most up-to-date documentation, please visit the main guide.

Testing

After adding your adapter to the correct folder, you will be able to test it by checking the output of the following command:

> npm test [dashboard] [protocolSlug]

or

> npm test [dashboard] [protocolSlug] [timestamp]

Being [dashboard] one of the following values: dexs, fees, incentives, aggregators, options, derivatives. [protocolSlug] the name of your protocol and [timestamp] as optional parameter the timestamp of the day passed to the adapter to test if the adapter is able to return a response based on a given time.

Examples:

> npm test fees bitcoin
> npm test dexs uniswap 1662110960
Building Dimension Adapters