{"id":18492922,"url":"https://github.com/graphprotocol/extractor-cosmos","last_synced_at":"2025-05-14T01:12:55.712Z","repository":{"id":96249242,"uuid":"487013180","full_name":"graphprotocol/extractor-cosmos","owner":"graphprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-07T12:08:39.000Z","size":141,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":26,"default_branch":"main","last_synced_at":"2024-12-25T16:09:34.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/graphprotocol.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":"2022-04-29T15:01:18.000Z","updated_at":"2022-12-14T13:04:58.000Z","dependencies_parsed_at":"2024-06-21T12:51:02.717Z","dependency_job_id":"c46f6d95-ea78-4f83-ad08-4c4a23f2717d","html_url":"https://github.com/graphprotocol/extractor-cosmos","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":"0.45833333333333337","last_synced_commit":"522513c459e1499fecdf1dca024d89a736b4d59b"},"previous_names":["figment-networks/extractor-cosmos"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fextractor-cosmos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fextractor-cosmos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fextractor-cosmos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphprotocol%2Fextractor-cosmos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphprotocol","download_url":"https://codeload.github.com/graphprotocol/extractor-cosmos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239207415,"owners_count":19599966,"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","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":"2024-11-06T13:11:49.292Z","updated_at":"2025-02-16T23:13:08.883Z","avatar_url":"https://github.com/graphprotocol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extractor-cosmos\n\nBlockchain data extraction utilities for Cosmos\n\n## Usage\n\nInitialize globally:\n\n```go\nfunc main() {\n  extractor.SetWriterFromConfig(\u0026extractor.Config{\n    OutputFile: \"/path/to/output.log\",\n    // Other config options are listed below\n  })\n\n  // Customize the logs prefix (DMLOG is a default)\n  extractor.SetPrefix(\"DMLOG\")\n\n  // Initialize height frame (this is needed when using bundled output) and write block data\n  extractor.SetHeight(12345)\n  extractor.WriteLine(extractor.MsgBegin, \"%d\", 12345)\n  extractor.WriteLine(extractor.MsgBlock, \"...block data...\")\n  extractor.WriteLine(extractor.MsgEnd, \"%d\", 12345)\n}\n```\n\n## Cosmos Instrumentation\n\nTODO: Add this section\n\n## Extractor Configuration\n\nTo enable extractor module, add the following to your `~/.gaia/config/config.toml` file:\n\n```toml\n#######################################################\n###           Extractor Configuration Options       ###\n#######################################################\n\n[extractor]\n# Enable the extractor workflow\nenabled = true\n\n# Output log file for all extracted data\n#\n# Could be one of the:\n# - \"stdout\", \"STDOUT\" will print out logs to standard output\n# - \"stderr\", \"STDERR\" will print out logs to standard error output\n# - \"path.log\" for relative to ~/.gaia directory\n# - \"/path/to/log.log\" - for absolute path\n#\n# Supported variables in the filename:\n# - $date - replaced by YYYYMMDD of current time in UTC\n# - $time - replaced by HHMMSS of current time in UTC\n# - $ts - replaced by a YYYYMMDD-HHMMSS of current time in UTC\n#\noutput_file = \"extractor.log\"\n# output_file = \"extractor-$date.log\"\n# output_file = \"extractor-$ts.log\"\n\n# We can also bundle block data per file\nbundle = true\nbundle_size = 1000 # each file will include data for 1k blocks/heights\n# output file will be \"output_file.log.0000000000\" and so on\n\n# Height range filtering\n# start_height = 100\n# end_height = 200\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fextractor-cosmos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphprotocol%2Fextractor-cosmos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphprotocol%2Fextractor-cosmos/lists"}