Abstract
This bounty will deploy a PoolTogether Prize Pool to Optimism. This is in support of Project: Optimism.
Motivation
Optimism is an Ethereum L2 with significantly lower transaction costs than Ethereum. Our Ethereum users will be able to migrate their funds to Optimism to take advantage of lower fees.
Additionally, Optimism is launching an incentive program for dapps. By deploying, PoolTogether will become eligible to receive incentives.
Rationale
We need a Ticket subgraph in order for the Prize API to function. This is a necessary component.
Deliverables
There are two sets of deliverables for this bounty, and an expectation to support other contributors until the project has been delivered.
The deliverables will occur in two stages:
- a testnet deployment
- a production deployment.
There will be a gap in time between the testnet deployment and the production deployment. After the testnet is deployed, the other team members of Project: Optimism will start building. Once the whole team is ready to deploy, then the production deployment will continue.
Testnet Deployment
- Add a new subgraph through the hosted service interface: https://thegraph.com/hosted-service/dashboard (you may have to create an account first)
- Create
optimism-kovan.json
file in thenetworks
folder: - add
optimism-kovan
as thenetwork
name - add the
address
of theticket
and thestartBlock
at which the ticket contract was deployed - In
package.json
, add the various commands to build and deploy the Optimism testnet subgraph - Deploy the Optimism testnet subgraph
- Update the README to add the various Optimism testnet related commands and subgraph URL
Mainnet Deployment
- Add a new subgraph through the hosted service interface: https://thegraph.com/hosted-service/dashboard (you may have to create an account first)
- Create
optimism.json
file in thenetworks
folder: - add
optimism
as thenetwork
name - add the
address
of theticket
and thestartBlock
at which the ticket contract was deployed - In
package.json
, add the various commands to build and deploy the Optimism mainnet subgraph - Deploy the Optimism mainnet subgraph
- Update the README to add the various Optimism mainnet related commands and subgraph URL
Once you have finished this task, you have to:
- open two Pull Requests: https://github.com/pooltogether/twab-subgraph/compare
- one for the testnet deployment
- one for the mainnet deployment
- tag Kames and Pierrick as reviewer
- contact Kames and Pierrick on Discord to inform them that the Pull Request is ready to review
Skills
Required
- know how to deploy a subgraph on the TheGraph hosted service
Nice to have
- know how to navigate Etherscan to retrieve the block at which the ticket contract was deployed
Reviewers
Kames and Pierrick will be reviewing the submission and are available for mentorship.
Budget
Total: $1,400 USDC and 140 POOL
Estimated Time: 1 Day (7 Hours)
Timeline:
- 50% will be paid after the Optimism-Kovan deployment
- 50% will be paid after Optimism-Mainnet deployment
Payout will be at full discretion of the reviewers. The requirements of the bounty and expectations of the reviewers must be met for the contributor to receive payment. It’s recommend to be in regular communication with the Bounty manager.
Recruitment
Referral Reward: 100 POOL
Know someone that can do it? Connect us with a qualified candidate. If that person is selected to complete the bounty, then you will be paid upon successful bounty completion. Reach out to Brendan for more info.