{"id":21589621,"url":"https://github.com/aditya172926/blockchain_indexers","last_synced_at":"2025-08-02T06:08:24.510Z","repository":{"id":216104550,"uuid":"740467247","full_name":"aditya172926/blockchain_indexers","owner":"aditya172926","description":"Indexers to fetch data from blockchain events and transactions data with their parameters","archived":false,"fork":false,"pushed_at":"2024-01-08T12:38:35.000Z","size":482,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T09:47:37.431Z","etag":null,"topics":["blockchain","data","indexers","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/aditya172926.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-01-08T12:06:19.000Z","updated_at":"2024-03-10T11:52:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b96fb868-a35b-4f5f-8eff-dd9cc8f1c0b9","html_url":"https://github.com/aditya172926/blockchain_indexers","commit_stats":null,"previous_names":["aditya172926/blockchain_indexers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aditya172926/blockchain_indexers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya172926%2Fblockchain_indexers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya172926%2Fblockchain_indexers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya172926%2Fblockchain_indexers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya172926%2Fblockchain_indexers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aditya172926","download_url":"https://codeload.github.com/aditya172926/blockchain_indexers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya172926%2Fblockchain_indexers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268340060,"owners_count":24234650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchain","data","indexers","rust"],"created_at":"2024-11-24T16:15:11.390Z","updated_at":"2025-08-02T06:08:24.502Z","avatar_url":"https://github.com/aditya172926.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# indexer-database\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ch2\u003emain.rs\u003c/h2\u003e\u003c/summary\u003e\n\n### fn main()\n\nreturns -\u003e Result which can be\n    - empty result, programming successful exit of the program\n    - error\n\n**Description** - THe main function is the starting point of the indexer. It takes no parameters and is responsible for initializing the *indexer data environment* and calling other functions.\n\n**Initializing Data Environment** - Before calling the functions which actually indexes the transactions we need to set some data which are required for these functions to work properly.\n\n**List of required data -** \n\n\u003cdetails\u003e\n\u003csummary\u003e1. contract_metadata\u003c/summary\u003e\n\nThe contract_metadata is a struct of type `ContractMetaData` which contains the basic data fetched from our Mongodb collection `contracts`.\n\nThe `ContractMetaData` type:\n```\npub struct ContractMetaData {\n    pub contract_address: String,\n    pub read_abi_from: String,\n    pub chain_id: String,\n    pub function_of_interest: String,\n    pub contract_name: String,\n    pub contract_description: String,\n    pub contract_slug: String,\n    pub method_of_interest:std::collections::HashSet\u003cString\u003e,\n    pub methods:Document,\n}\n```\n\nKey points\n\n- contract_address: Address of the contract that we will index\n- read_abi_from: Address of the contract from where we get the Application Binary Interface (ABI) of the project smart contract. This is usually required if the above `contract_address` is a proxy contract, then we cannot use that ABI, instead we get it from `read_abi_from`, which will be given by the user.\n- chain_id: Id of the chain where the contract is deployed\n- function_of_interest: A list of functions which will be indexed if a transaction happens on anyone of them\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e2. contract_result\u003c/summary\u003e\n\nThis is tuple of `contract_metadata`, `contract_fetched_abi`, and `contract_abi`.\nThe function that returns the data for this comes from utils.rs -\u003e `utils_contract_data(contract_slug)`????. \n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e3. contract_abi\u003c/summary\u003e\n\nThis contains the ABI of the contract that is on the second index position of `contract_result`.\nAt first the smart contract ABI is a `String` type, stored in `contract_fetched_abi` variable.\nWe convert the `String` type to\n\n\u003c/details\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eutils.rs\u003c/summary\u003e\n\n\n\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya172926%2Fblockchain_indexers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya172926%2Fblockchain_indexers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya172926%2Fblockchain_indexers/lists"}