Skip to content

Conversation

@youngkidwarrior
Copy link
Collaborator

Why:

  • Preserve on-chain precision; avoid Number() coercion in app code.
  • Keep generated Row types numeric; widen Insert/Update only (number|string|bigint).

Test plan:

  • yarn tsc across workspaces → no type errors; writes accept bigint|string.
  • Existing reads remain numeric.

Copy link
Collaborator Author

youngkidwarrior commented Oct 4, 2025

@youngkidwarrior youngkidwarrior force-pushed the types_widen_write_types_for_balance_weight_precision branch from 0fd629d to 87d2240 Compare October 4, 2025 09:43
@youngkidwarrior youngkidwarrior force-pushed the db_add_token_balances_rls_trigger_backfill branch from 871cfb2 to 36abf87 Compare October 4, 2025 09:43
@youngkidwarrior youngkidwarrior force-pushed the types_widen_write_types_for_balance_weight_precision branch from 87d2240 to fa92a18 Compare October 4, 2025 10:32
@youngkidwarrior youngkidwarrior force-pushed the db_add_token_balances_rls_trigger_backfill branch from 36abf87 to c509af8 Compare October 4, 2025 10:32
@youngkidwarrior youngkidwarrior force-pushed the types_widen_write_types_for_balance_weight_precision branch from fa92a18 to 6bd27f4 Compare October 4, 2025 12:08
@youngkidwarrior youngkidwarrior force-pushed the db_add_token_balances_rls_trigger_backfill branch from c509af8 to 4c24cdd Compare October 4, 2025 12:08
Why:
- Preserve on-chain precision; avoid Number() coercion in app code.
- Keep generated Row types numeric; widen Insert/Update only (number|string|bigint).

Test plan:
- yarn tsc across workspaces → no type errors; writes accept bigint|string.
- Existing reads remain numeric.
@youngkidwarrior youngkidwarrior force-pushed the db_add_token_balances_rls_trigger_backfill branch from 4c24cdd to 4644579 Compare October 10, 2025 06:28
@youngkidwarrior youngkidwarrior force-pushed the types_widen_write_types_for_balance_weight_precision branch from 6bd27f4 to 6152588 Compare October 10, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants