Repository navigation
Transfers record: every provable transfer, not only the last week - #311
Open
ezedike-evan wants to merge 1 commit into
Open
ezedike-evan wants to merge 1 commit into
ezedike-evan wants to merge 1 commit into
Conversation
The public /transfers page listed 6 transfers because Stellar RPC keeps seven days of events and the fee-address readers were skipped (repo variables unset). Now: - One-time backfill (scripts/transfers-backfill.mjs -> scripts/data/transfers-backfill.json): every transfer through both Stellar contracts from Xebra's accounts and the accounts they created (Horizon finds the transactions, the archive RPC reads each bridge_initiated event), plus early burns checked against Circle. - Live reader for mints Xebra's relayer signed into Stellar, joined to the Sui burn; Stellar reader covers the retired v1 contract too. - Fee addresses fall back to the live site's public ones with a loud run warning; Aptos fee reader added; Arc fee withdrawals not counted. - Rows from several sources are merged by burn/mint tx, strongest proof kept; totals add chains and routes; contract get_seq/seq counts are compared with listed rows and any gap is shown. - Page leads with "N transfers across M chains", shows the mint link and the two new proof kinds. - Workflow: cron three times an hour, runs on push to main for record code, skips commits that only change updatedAt.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
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.
The /transfers page only showed what the Stellar RPC still kept (7 days), never read the retired v1 Stellar contract, and didn't count deliveries our relayers finished. GitHub also skipped scheduled runs. Result: the page undercounted badly.
What changes
scripts/transfers-backfill.mjs+scripts/data/transfers-backfill.json: a one-time backfill of older transfers, merged into the record (scripts/lib/record-merge.mjs, tested).chain-readers.mjs: reads Stellar v1 and v2, relayed deliveries into Stellar, Aptos fees; counts per contract.transfers-record.mjs: falls back to the known fee addresses (with a warning) when the repo variables are unset./transfersleads with the totals: 31 transfers, 381.61 USDC, 6 chains, 7 routes.After merge, set the repo variables
XEBRA_FEE_ADDRESS_EVM,_SOLANA,_SUI,_APTOSso the fallback warnings go away.🤖 Generated with Claude Code