Skip to content

refactor(sncast) Extract account helpers as clean services - #4552

Open
integraledelebesgue wants to merge 1 commit into
refactor/sncast-native-account-repositoryfrom
refactor/sncast-account-services
Open

refactor(sncast) Extract account helpers as clean services#4552
integraledelebesgue wants to merge 1 commit into
refactor/sncast-native-account-repositoryfrom
refactor/sncast-account-services

Conversation

@integraledelebesgue

@integraledelebesgue integraledelebesgue commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Introduced changes

This PR introduces:

  1. AccountSelector that differentiates the account variants (named, devnet and legacy starkli) and owns each one's data
  2. AccountDeploymentService that owns the logic related to account deployment (address computation, fee estimation, deployment itself)
  3. AccountService that builds runtime accounts based on AccountSelector and wraps the dispatch logic between a transparent API

Those new structures are used in place of old, messy code.

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from a53d0b2 to b8c98b6 Compare August 19, 2026 16:13
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from b8c98b6 to dd3838e Compare August 19, 2026 16:20
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from dd3838e to 0ca682d Compare August 19, 2026 16:33
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 0ca682d to a502bee Compare August 19, 2026 16:46
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 5 times, most recently from a3f7fbc to a187780 Compare August 20, 2026 13:54
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from a187780 to b118ae3 Compare August 20, 2026 14:04
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from b118ae3 to 46c6df7 Compare August 20, 2026 14:10
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 2 times, most recently from 00b47c8 to 85f8b9e Compare August 20, 2026 15:12
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 85f8b9e to bf6a4d1 Compare August 20, 2026 15:22
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from bf6a4d1 to 75d9b4f Compare August 20, 2026 15:58
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 75d9b4f to bdf31bc Compare August 20, 2026 16:08
@integraledelebesgue integraledelebesgue changed the title refactor/sncast account services refactor(sncast) Extract account helpers as clean services Aug 21, 2026
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 2 times, most recently from 2de93c9 to c5e3076 Compare August 25, 2026 10:36
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from c5e3076 to 90e3488 Compare August 25, 2026 10:55
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 90e3488 to 21452cc Compare August 26, 2026 10:50
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 21452cc to 8b13df0 Compare August 26, 2026 11:23
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 2 times, most recently from 62dd5f3 to 365859d Compare August 27, 2026 08:38
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 365859d to c5e3494 Compare August 27, 2026 10:23
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from c5e3494 to 38f5919 Compare August 27, 2026 11:01
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 2 times, most recently from 58ebea8 to d42c1e9 Compare August 27, 2026 17:11
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from d42c1e9 to c1add54 Compare August 28, 2026 15:04
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from c1add54 to 1f8d300 Compare August 28, 2026 15:14
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch from 1f8d300 to ab00fa3 Compare August 28, 2026 15:16
@integraledelebesgue
integraledelebesgue force-pushed the refactor/sncast-account-services branch 2 times, most recently from 3f1dfa4 to e70fdeb Compare August 28, 2026 15:49
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.

1 participant