{"id":29219923,"url":"https://github.com/protofire/bullrunbabes-subgraph","last_synced_at":"2025-07-03T02:07:53.223Z","repository":{"id":44722924,"uuid":"423892728","full_name":"protofire/bullrunbabes-subgraph","owner":"protofire","description":"Subgraph for bullrunbabes nfts","archived":false,"fork":false,"pushed_at":"2022-01-28T18:26:40.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-04-10T04:54:20.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/protofire.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}},"created_at":"2021-11-02T15:13:25.000Z","updated_at":"2022-02-08T00:12:33.000Z","dependencies_parsed_at":"2022-09-07T04:51:56.242Z","dependency_job_id":null,"html_url":"https://github.com/protofire/bullrunbabes-subgraph","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/protofire/bullrunbabes-subgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fbullrunbabes-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fbullrunbabes-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fbullrunbabes-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fbullrunbabes-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protofire","download_url":"https://codeload.github.com/protofire/bullrunbabes-subgraph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fbullrunbabes-subgraph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263245313,"owners_count":23436515,"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":"2025-07-03T02:07:52.701Z","updated_at":"2025-07-03T02:07:53.209Z","avatar_url":"https://github.com/protofire.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BullrunBabes [https://www.bullrunbabes.com/rules]\n---\nThis subgraph allows you to interact with the game contracts and query information about the project's tokens and transactions made.\n\n#### The graph \nhttps://thegraph.com/hosted-service/subgraph/protofire/bullrunbabes\n#### API\nhttps://api.thegraph.com/subgraphs/name/protofire/bullrunbabes \n\n## Entities\n\n### Card\nInformation related to the *NFT*. Here you can find the transaction history also.\nFor example, if you know the ID of the token you can get the transaction's history about it:\n```\n{\n  card(id: 1919) {\n    tier\n    history {\n      timestamp\n      type\n      from {\n        id\n      }\n      to {\n        id\n      }\n    }\n  }\n}\n```\nOr get all cards by owner address:\n```\n{\n  cards(where: {owner: \"0xb0151d256ee16d847f080691c3529f316b2d54b3\"}) {\n    id\n    history {\n      timestamp\n      type\n      from {\n        id\n      }\n      to {\n        id\n      }\n    }\n  }\n}\n```\n\n### Transaction\nWe have different kind of transaction that you can find into our sub graph: \n\n***Draw*** is when the NFT it's minted.\n\n***Buy*** the NFT was transferred from one address to another.\n\n***Trade*** the NFT was traded for another different NFT, which could be one-to-one or more than one depending on the level of the card want to receive.\n\nAs each one it's a transaction itself, all these transactions types could be queried by the same entity: \n```\n{\n  transactions(where: {type: TRADE}) {\n    timestamp\n    card {\n      id\n    }\n  }\n}\n```\n\n### Date\nThrough this entity, you could get the transactions made on a specific date and you can do that with the \"human format\" of a date.\n```\n{\n  dates(where: {day: \"01\", month: \"01\", year: \"2022\"}) {\n    transactions {\n      type\n      card {\n        id\n      }\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotofire%2Fbullrunbabes-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotofire%2Fbullrunbabes-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotofire%2Fbullrunbabes-subgraph/lists"}