graphprotocol / graphprotocol/contracts

staking: allow staking and delegating using a signed message

Open
#586 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Solidity
Stars
374
Forks
176
Avg merge
1d 15h
Merged PRs (30d)
4

Description

Instead of the usual approve + delegate/stage workflow we could make use of GRT's permit feature and combine both actions in a single transaction. User would call stakeSig/delegateSig with a signed message that would approve token usage via an internal call to permit function.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing approve + delegate/stage workflow and the GRT permit feature. The work is complete when signed-message entry points such as stakeSig/delegateSig combine token approval through permit with staking or delegation in a single transaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.