Skip to content

Conversation

@minhd-vu
Copy link
Contributor

Description

  • Move loadtest logic from cmd/loadtest/ to loadtest/ library
  • Create loadtest/mode/ for shared infrastructure (interface, registry, dependencies, util)
  • Create loadtest/modes/ for mode implementations
  • Create loadtest/config/ for configuration types
  • Refactor UniswapV3Mode to use dependencies directly instead of callback
  • Fix strings.HasPrefix() argument order in recall.go for ERC20/ERC721 detection
  • Fix index mismatch in rpc.go using wrong array length after deduplication
  • Replace println() with fmt.Println() in util.go for proper stdout output
  • Simplify deduplicate() using maps.Keys and slices.Collect
  • Rename Initialize to Init in mode interface
  • Move AccountPoolConfig to loadtest/account.go

Jira / Linear Tickets

Testing

  • Test A
  • Test B

- Move loadtest logic from cmd/loadtest/ to loadtest/ library
- Create loadtest/mode/ for shared infrastructure (interface, registry, dependencies, util)
- Create loadtest/modes/ for mode implementations
- Create loadtest/config/ for configuration types
- Refactor UniswapV3Mode to use dependencies directly instead of callback
- Fix strings.HasPrefix() argument order in recall.go for ERC20/ERC721 detection
- Fix index mismatch in rpc.go using wrong array length after deduplication
- Replace println() with fmt.Println() in util.go for proper stdout output
- Simplify deduplicate() using maps.Keys and slices.Collect
- Rename Initialize to Init in mode interface
- Move AccountPoolConfig to loadtest/account.go
@minhd-vu minhd-vu force-pushed the minhd-vu/loadtest-subcmds branch from e531c35 to 8a2de58 Compare January 20, 2026 03:25
@leovct
Copy link
Member

leovct commented Jan 20, 2026

Looks like it's gonna conflict a lot with this other pending PR: #755

leovct
leovct previously approved these changes Jan 20, 2026
Copy link
Member

@leovct leovct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, really like the new structure, especially the mode interface!!

@minhd-vu minhd-vu merged commit c85e070 into main Jan 21, 2026
15 checks passed
@minhd-vu minhd-vu deleted the minhd-vu/loadtest-subcmds branch January 21, 2026 09:23
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.

3 participants