re-enable fully gasless claiming, owner update for already-claimed repos#1877
Draft
re-enable fully gasless claiming, owner update for already-claimed repos#1877
Conversation
|
🚅 Deployed to the app-pr-1877 environment in Drips App
4 services not affected by this PR
|
…wner-update endpoint
Contributor
There was a problem hiding this comment.
Pull request overview
Re-enables fully gasless owner updates during the claim flow (post-FUNDING.json verification) and adds support for “re-claiming” an already-claimed GitHub project to update its on-chain owner.
Changes:
- Adds a new gasless relay endpoint to submit
updateOwnerByLitvia Gelato in the background. - Updates the claim project flow to allow re-claiming (claimed URL + different connected wallet) and adjusts verification/status checks accordingly.
- Removes the legacy “Request owner update” utility from the Secret Menu and updates owner-update tx construction to route through
Caller(including gasless EIP-712 flow).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/routes/api/gasless/call/lit-owner-update/+server.ts | New API route to relay Lit-based owner updates via Gelato with Redis de-duplication. |
| src/routes/(pages)/app/(app)/secret-menu/+page.svelte | Removes deprecated “Request owner update” UI and related transaction code/imports. |
| src/lib/flows/claim-project-flow/steps/set-splits-and-emit-metadata/set-splits-and-emit-metadata.svelte | Adjusts owner-update waiting logic for re-claim, shortens simulation retry window, and routes Lit owner update through Caller with optional gasless signing. |
| src/lib/flows/claim-project-flow/steps/enter-git-url/enter-git-url.svelte | Allows claimed projects to proceed as “re-claim” when wallet differs; updates UI copy and resets reclaim state on clear. |
| src/lib/flows/claim-project-flow/steps/add-ethereum-address/add-ethereum-address.svelte | Restores background gasless Lit owner update after FUNDING.json verification, with simulation retry before relaying and fallback to manual submission. |
| src/lib/flows/claim-project-flow/claim-project-flow.ts | Adds isReclaiming state and updates success messaging accordingly. |
| src/lib/flows/claim-orcid-flow/steps/set-splits/set-splits.svelte | Updates Lit owner-update transaction to route through Caller with optional gasless signing (matching the new pattern). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/lib/flows/claim-project-flow/steps/enter-git-url/enter-git-url.svelte
Show resolved
Hide resolved
src/lib/flows/claim-project-flow/steps/enter-git-url/enter-git-url.svelte
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1875 and enables updating the owner of an already-claimed project.
Restores:
Removes:
Adds: