{"id":20001961,"url":"https://github.com/pooltogether/v4-core","last_synced_at":"2026-06-09T11:31:30.775Z","repository":{"id":38216325,"uuid":"379750321","full_name":"pooltogether/v4-core","owner":"pooltogether","description":"Core contracts for PoolTogether v4 🌊 🏆","archived":false,"fork":false,"pushed_at":"2023-11-11T17:29:19.000Z","size":2588,"stargazers_count":202,"open_issues_count":1,"forks_count":50,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-25T04:03:30.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pooltogether.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-23T23:13:09.000Z","updated_at":"2025-03-26T02:55:10.000Z","dependencies_parsed_at":"2024-11-13T05:29:59.136Z","dependency_job_id":null,"html_url":"https://github.com/pooltogether/v4-core","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pooltogether/v4-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fv4-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fv4-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fv4-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fv4-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pooltogether","download_url":"https://codeload.github.com/pooltogether/v4-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fv4-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34105565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":[],"created_at":"2024-11-13T05:19:16.545Z","updated_at":"2026-06-09T11:31:30.757Z","avatar_url":"https://github.com/pooltogether.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pooltogether/pooltogether--brand-assets\"\u003e\n    \u003cimg src=\"https://github.com/pooltogether/pooltogether--brand-assets/blob/977e03604c49c63314450b5d432fe57d34747c66/logo/pooltogether-logo--purple-gradient.png?raw=true\" alt=\"PoolTogether Brand\" style=\"max-width:100%;\" width=\"400\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# PoolTogether V4 Core Smart Contracts\n\n![Tests](https://github.com/pooltogether/v4-core/actions/workflows/main.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/pooltogether/v4-core/badge.svg?branch=master)](https://coveralls.io/github/pooltogether/v4-core?branch=master)\n[![built-with openzeppelin](https://img.shields.io/badge/built%20with-OpenZeppelin-3677FF)](https://docs.openzeppelin.com/)\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html)\n\n\u003cstrong\u003eHave questions or want the latest news?\u003c/strong\u003e\n\u003cbr/\u003eJoin the PoolTogether Discord or follow us on Twitter:\n\n[![Discord](https://badgen.net/badge/icon/discord?icon=discord\u0026label)](https://pooltogether.com/discord)\n[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter\u0026label)](https://twitter.com/PoolTogether_)\n\n**Documentation**\u003cbr\u003e\nhttps://v4.docs.pooltogether.com\n\n**Deployments**\u003cbr\u003e\n- [Ethereum](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#mainnet)\n- [Polygon](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#polygon)\n- [Avalanche](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#avalanche)\n- [Optimism](https://v4.docs.pooltogether.com/protocol/deployments/mainnet/#optimism)\n\n# Overview\n- [ControlledToken](/contracts/ControlledToken.sol)\n- [DrawBeacon](/contracts/DrawBeacon.sol)\n- [DrawBuffer](/contracts/DrawBuffer.sol)\n- [DrawCalculator](/contracts/DrawCalculator.sol)\n- [EIP2612PermitAndDeposit](/contracts/permit/EIP2612PermitAndDeposit.sol)\n- [PrizeDistributionBuffer](/contracts/PrizeDistributionBuffer.sol)\n- [PrizeDistributor](/contracts/PrizeDistributor.sol)\n- [PrizeSplitStrategy](/contracts/prize-strategy/PrizeSplitStrategy.sol)\n- [Reserve](/contracts/Reserve.sol)\n- [StakePrizePool](/contracts/prize-pool/StakePrizePool.sol)\n- [Ticket](/contracts/Ticket.sol)\n- [YieldSourcePrizePool](/contracts/prize-pool/YieldSourcePrizePool.sol)\n\nPeriphery and supporting contracts:\n\n- https://github.com/pooltogether/v4-periphery\n- https://github.com/pooltogether/v4-oracle-timelocks\n\n\n# Getting Started\n\nThe project is made available as a NPM package.\n\n```sh\n$ yarn add @pooltogether/pooltogether-contracts\n```\n\nThe repo can be cloned from Github for contributions.\n\n```sh\n$ git clone https://github.com/pooltogether/v4-core\n```\n\n```sh\n$ yarn\n```\n\nWe use [direnv](https://direnv.net/) to manage environment variables.  You'll likely need to install it.\n\n```sh\ncp .envrc.example .envrc\n```\n\nTo run fork scripts, deploy or perform any operation with a mainnet/testnet node you will need an Infura API key.\n\n# Testing\n\nWe use [Hardhat](https://hardhat.dev) and [hardhat-deploy](https://github.com/wighawag/hardhat-deploy)\n\nTo run unit \u0026 integration tests:\n\n```sh\n$ yarn test\n```\n\nTo run coverage:\n\n```sh\n$ yarn coverage\n```\n\n# Deployment\n\n## Testnets\nDeployment is maintained in a different [repo](https://github.com/pooltogether/v4-testnet).\n\n## Mainnet\nDeployment is maintained in a different [repo](https://github.com/pooltogether/v4-mainnet).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fv4-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpooltogether%2Fv4-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fv4-core/lists"}