Skip to content

[pull] master from unlock-protocol:master#123

Merged
pull[bot] merged 3 commits intosearchableguy:masterfrom
unlock-protocol:master
Mar 21, 2026
Merged

[pull] master from unlock-protocol:master#123
pull[bot] merged 3 commits intosearchableguy:masterfrom
unlock-protocol:master

Conversation

@pull
Copy link

@pull pull bot commented Mar 21, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

julien51 and others added 3 commits March 20, 2026 17:16
* feat: add governance proposal read paths

* chore: update yarn.lock for ethers dependency in governance-app

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci: remove deploy-vercel script and fix Vercel ignore command

- Remove governance-app/scripts/deploy-vercel.sh (replaced by native Vercel integration)
- Add ignoreCommand to watch governance-app/ and yarn.lock changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci: fix Vercel ignoreCommand to use paths relative to project root

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: fetch governance proposals from subgraph instead of RPC queryFilter

The eth_getLogs range from governorStartBlock (~1.75M) to latest (~29M)
is too large for the default RPC provider, causing the governance app
homepage to fail with an RPC error.

Migrates proposal fetching to the subgraph (already fully synced), keeping
only simple contract calls (proposalThreshold, votingDelay, votingPeriod)
and getLatestTimestamp() on RPC.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: use BigInt arithmetic in percentage() to avoid precision loss

Number(bigint) loses precision for token amounts > Number.MAX_SAFE_INTEGER.
Since UP token has 18 decimals, raw wei values exceed this threshold for any
real vote. Keep the division in BigInt space, only converting the small result.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: hardcode governance subgraph URL and improve error visibility

- Hardcode subgraph.unlock-protocol.com/8453 as the default governance
  subgraph URL instead of relying on base.subgraph.endpoint (same URL
  but now explicit and decoupled from the networks package)
- Add console.error to all error boundaries so failures are visible in
  Vercel logs
- Update error messages to reference the subgraph instead of RPC
- Remove "indexed from RPC" label from proposals count

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: remove hardcoded tokenSymbol from config, already fetched via symbol() on-chain

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: fetch tokenSymbol from contract instead of hardcoding it in config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@pull pull bot locked and limited conversation to collaborators Mar 21, 2026
@pull pull bot added the ⤵️ pull label Mar 21, 2026
@pull pull bot merged commit 07aae83 into searchableguy:master Mar 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant