Conversation
- Add network field to ValidatorWallet model with composite unique constraint - Add ValidatorWalletStatusSnapshot model for daily status recording - Add TESTNET_NETWORKS config in settings with per-network contract addresses - Refactor GenLayerValidatorsService to accept network_key parameter - Add sync_all_networks() class method for multi-network sync - Update add_daily_uptime command with per-network lookback logic - Add network and explorer_url to serializers - Add ?network= filter, network_stats, and /networks endpoint to views - Add network column and filter to ValidatorWallet admin - Add backfill_status_snapshots management command - Update deploy scripts with Bradbury SSM parameters - Add network filter tabs and network column to Validators table - Add network badges to Profile wallet cards - Refactor blockchain.js with NETWORKS dict supporting both networks - Update API client with network param support and getNetworks() - Update UI text from "Testnet Asimov" to "Testnets" across all pages - Update .env.example files with per-network configuration
…, N+1 query - Fix duplicate uptime on deployment day: asimov check now matches legacy notes without network marker (old format had no "(asimov)" suffix) - Fix dual $effect race condition in Validators.svelte causing two API calls on mount — merged into single effect tracking both dependencies - Replace N+1 update_or_create loop in _record_status_snapshots with bulk_create(update_conflicts=True) - Handle unknown network values in validator table badge display - Prevent UPTIME_LOOKBACK_DAYS crash on empty string env var - Add warning to backfill command about current-status limitation - Use TESTNET_NETWORKS config in users/views.py instead of deprecated VALIDATOR_CONTRACT_ADDRESS setting
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.
Summary
Backend Changes
ValidatorWalletgetsnetworkfield with composite unique constraint(address, network); newValidatorWalletStatusSnapshotmodel for daily status recordingTESTNET_NETWORKSdict with per-network contract addresses, explorer URLs; backward-compatible fallback to old env var namesGenLayerValidatorsServiceacceptsnetwork_keyparam;sync_all_networks()iterates configured networks; records daily status snapshotsadd_daily_uptimecommand uses lookback window (UPTIME_LOOKBACK_DAYS) to checkValidatorWalletStatusSnapshotfor active status per network?network=filter param,network_statsin list response,/networksendpoint returning configured networksValidatorWallet, registeredValidatorWalletStatusSnapshotAdminbackfill_status_snapshotsfor initial deploymentFrontend Changes
NETWORKSdict supporting both networks,ensureNetwork()functiongetNetworks(), network param on wallet endpointsTest plan
python manage.py migrate— verify existing wallets getnetwork='asimov'network='bradbury'add_daily_uptime --verbose --dry-run— verify per-network point awardsGET /validators/wallets/— verifynetworkfield andnetwork_statsGET /validators/wallets/?network=asimov— verify filteringGET /validators/wallets/networks/— verify available networksbackfill_status_snapshots --days=7after migration