{"id":19607108,"url":"https://github.com/jbx-protocol/juice-extension-template","last_synced_at":"2026-05-16T05:34:58.328Z","repository":{"id":103564267,"uuid":"508837632","full_name":"jbx-protocol/juice-extension-template","owner":"jbx-protocol","description":"A template to easily create Juicebox V2 treasury extensions.","archived":false,"fork":false,"pushed_at":"2022-06-29T21:20:45.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T09:26:18.351Z","etag":null,"topics":["ethereum","juicebox","solidity"],"latest_commit_sha":null,"homepage":"","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/jbx-protocol.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-06-29T20:32:58.000Z","updated_at":"2023-01-18T18:41:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"109a3764-1382-4e4d-bc78-e031d99c820b","html_url":"https://github.com/jbx-protocol/juice-extension-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbx-protocol%2Fjuice-extension-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbx-protocol%2Fjuice-extension-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbx-protocol%2Fjuice-extension-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbx-protocol%2Fjuice-extension-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbx-protocol","download_url":"https://codeload.github.com/jbx-protocol/juice-extension-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240895017,"owners_count":19874912,"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":["ethereum","juicebox","solidity"],"created_at":"2024-11-11T10:08:54.625Z","updated_at":"2026-05-16T05:34:58.301Z","avatar_url":"https://github.com/jbx-protocol.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Juice Extension Templates\n\nThis repo provides some implementation templates of peripheral contracts of the Juicebox V2 ecosystem.\n\n# Install Foundry\n\nTo get set up:\n\n1. Install [Foundry](https://github.com/gakonst/foundry).\n\n```bash\ncurl -L https://foundry.paradigm.xyz | sh\n```\n\n2. Install external lib(s)\n\n```bash\ngit submodule update --init \u0026\u0026 yarn install\n```\n\nthen run\n\n```bash\nforge update\n```\n\nIf git modules are failing to clone, not installing, etc (ie overall submodule misbehaving), use `git submodule update --init --recursive --force`\n\n3. Run tests:\n\n```bash\nforge test\n```\n\n4. Update Foundry periodically:\n\n```bash\nfoundryup\n```\n\n## Content\n\nThis repo is organised as follow:\n\n- contracts/Allocator: contains an IJBSplitsAllocator implementation template (Allocator.sol)\n\n- contracts/DatasourceDelegate: contains an IJBFundingCycleDataSource, IJBPayDelegate and IJBRedemptionDelegate implementation templates (DataSourceDelegate.sol).\n\n- contracts/Terminal: contains an IJBPaymentTerminal and IJBRedemptionTerminal implementation template.\n\n# Deploy \u0026 verify\n\n#### Setup\n\nConfigure the .env variables, and add a mnemonic.txt file with the mnemonic of the deployer wallet. The sender address in the .env must correspond to the mnemonic account.\n\n## Rinkeby\n\n```bash\nyarn deploy-rinkeby\n```\n\n## Mainnet\n\n```bash\nyarn deploy-mainnet\n```\n\nThe deployments are stored in ./broadcast\n\nSee the [Foundry Book for available options](https://book.getfoundry.sh/reference/forge/forge-create.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbx-protocol%2Fjuice-extension-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbx-protocol%2Fjuice-extension-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbx-protocol%2Fjuice-extension-template/lists"}