{"id":24066325,"url":"https://github.com/rainlanguage/rain.defillama","last_synced_at":"2026-03-04T06:06:15.641Z","repository":{"id":251190615,"uuid":"836611111","full_name":"rainlanguage/rain.defillama","owner":"rainlanguage","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-01T10:24:51.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T19:27:41.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainlanguage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-01T07:58:10.000Z","updated_at":"2024-08-01T10:24:54.000Z","dependencies_parsed_at":"2024-08-01T12:06:34.236Z","dependency_job_id":null,"html_url":"https://github.com/rainlanguage/rain.defillama","commit_stats":null,"previous_names":["rainlanguage/rain.defillama"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rainlanguage/rain.defillama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.defillama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.defillama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.defillama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.defillama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainlanguage","download_url":"https://codeload.github.com/rainlanguage/rain.defillama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.defillama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30073758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-09T11:40:18.155Z","updated_at":"2026-03-04T06:06:15.613Z","avatar_url":"https://github.com/rainlanguage.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raindex Adapter for DefiLlama\n\nThis repository contains an adapter that enables DefiLlama to fetch and display data from Raindex. The adapter supports multiple chains and fetches Total Value Locked (TVL) and volume data for specified contracts.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Supported Chains](#supported-chains)\n- [Methodology](#methodology)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nTo install the necessary dependencies, run:\n\n```bash\nnpm install\n```\n\n## Usage\n\nThe adapter fetches TVL and volume data for Raindex. The data is fetched from the specified contracts on different chains and can be used to integrate with DefiLlama.\n\n## Example\n\nTo use the adapter, you can import it and call the fetch method with the appropriate options.\n\n```\nimport adapter from './path_to_adapter';\n\n// Example usage\nconst options = {\n  endTimestamp: Date.now() / 1000,\n  getEndBlock: async (chain) =\u003e {/* implementation to get block number */}\n};\n\nconst result = await adapter.breakdown.v1[CHAIN.ETHEREUM].fetch(options);\nconsole.log(result);\n```\n\n## Supported Chain\n\nThe adapter currently supports the following chains:\n\n- Ethereum\n- Polygon\n- Arbitrum\n- Binance Smart Chain (BSC)\n- Flare\n- Base\n\n## Methodology\n\nThe adapter counts the number of tokens in specified contracts and calculates their volume. It uses the following methods:\n\n- fetchTVL: Fetches the Total Value Locked (TVL) by counting the balance of tokens in the specified contracts.\n- fetchVolume: Fetches the volume of tokens by counting the total supply in the specified contracts (using a placeholder ABI for volume fetching).\n\n  \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Frain.defillama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainlanguage%2Frain.defillama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Frain.defillama/lists"}