Closed friedger closed 2 years ago
Hey @friedger,
I see you're listing the clarity-bitcoin library as a key component. I haven't had time yet to determine how truly expensive it is to parse and validate Bitcoin transactions on-chain with that code -- the frequent use of index-of
makes it expensive. If you end up using it for validating Merkle proofs, you might want to add a method that takes a tuple
representation of a transaction, and generates its txid by serializing it piecemeal. You could call the existing parsing code as a read-only method from a Web client to get a tuple
representation, serialize that representation with stacks.js
, and then use this new method to (1) derive the txid, and (2) verify that it was included in a Bitcoin block.
The develop
branch of stacks-blockchain
contains a version of clarity-cli
that will output the runtime costs for this and other contracts you use, in order to help you determine how expensive it will be for the audit contract to run.
+1 for an accounting feature incorp in the webapp so individual users can automatically track their transactions, base value and rewards across participating pools for taxation purposes. I realize it is beyond the scope of current proposal but thought I would throw it out there.
Hi @friedger, this has been approved. However, please keep us updated on the status of pool admin registrations for #84. If possible, could you please set a deadline within the next couple of weeks to get everyone registered so that we can close out that grant? Thanks! cc: @RaffiSapire for the contract--thank you!
Hi @friedger can you resubmit this again so you can use our new onboarding and enter in your STX address? Also update your grant to be in USD. We never approve grants in STX. The grants will be converted to STX based on trailing 30 day average on the day of disbursement.
This is closed in favor of #121
Background Users of stacking pools have to trust the pool admin to manage their rewards correctly. Transparency can help to increase the trust. Therefore, income and expenses should be collected on-chain. This will create transparency as well as help to automate stacking pool operation in the future. This is the next step to make stacking pools more autonomous. Friedger Pool and other community stacking pools should benefit from it.
Project Overview The project is about writing a smart contract and a web interface that allows users and pool admins to submit and view tx of stacking pools that payout rewards in stx as well as perform some pool admin tasks. Users and pool admins have the same privileges because the submitted data is verified on-chain.
The project will collaborate and use results from related work by the following projects:
Scope What are the components or technical specs of the project? What will the final deliverable look like? How will you measure success? Components:
connect
library for tx signing (requires users to use Stacks Wallet for Web)The project will be successful when
Budget and Milestones What grant amount are you seeking? How long will the project take in hours? If more than 20, please break down the project into milestones, with a clear output (e.g., low-fi mockup, MVP with two features) and include the estimated work hours for each milestone.
Total Grant Request: 8000 STX
M1: Smart contract for submitting btc transactions + web app to submit and view txs (1 week) 1000 STX development clarity + web 1000 STX operating costs Friedger Pool
M2: Extended smart contract with pool operations + web app + testnet test (2 week) 1500 STX development clarity + web 500 STX community management for testing 2000 STX operating costs Friedger Pool
M3: Invite pool members to use the contract for the next cycle. (1 week) 1000 STX user education 1000 STX operating costs Friedger Pool
Team Who is building this? What relevant experience do you bring to this project? Are there skills sets you are missing that you are seeking from the community? Please share links to previous work.
Friedger Müffke, pool administrator of Friedger Pool,
I have one open grant (https://github.com/stacksgov/Stacks-Grants/issues/84) that only requires a bit of communication with other pool admins over the next weeks.
I am looking for
Risks
The project depends on the successful submission of the Stacks Wallet for Web through the Hiro team. The project can only be successful once the wallet is published on the corresponding browser extension sites.
The verification of btc tx is not yet well tested in production. It can be too difficult or impossible to do it on-chain. Therefore, M1 focus on this part of the proposal.
Community and Supporting Materials This is continued work for Friedger Pool and related community stacking pools, following #52 and #84