vocdoni / census3

Golang library and a HTTP/API service that can be used to fetch an updated list of token holders for a Ethereum ERC20, ERC721, ERC777, or other external providers (ex. POAPs or GitcoinPassport).
GNU Affero General Public License v3.0
9 stars 2 forks source link

refactor internal package for importing code as lib #167

Closed jordipainan closed 9 months ago

jordipainan commented 9 months ago

Summary by CodeRabbit

github-actions[bot] commented 9 months ago

Image description CodeRabbit

Walkthrough

This change set primarily focuses on refactoring the import paths across the codebase. The internal package has been split into helpers and metrics packages, and all references have been updated accordingly. This includes changes for lexer, strategyoperators, and queue.

Changes

Files Summary
api/api.go, api/censuses.go, api/helpers.go, api/strategies.go, api/tokens.go Refactored the import paths to use new packages for metrics and rounded census helpers. Updated references from the internal package to the helpers and metrics packages.
helpers/strategyoperators/operators.go, helpers/strategyoperators/operators_test.go, helpers/strategyoperators/strategyoperators.go Changed the import path for the lexer package from github.com/vocdoni/census3/internal/lexer to github.com/vocdoni/census3/helpers/lexer.
metrics/metrics.go Changed package name from internal to metrics.

🐇

In the land of code where the shadows lie,

We refactor, we update, under the cloudless sky.

From internal to helpers, then metrics we go,

Making our codebase a more organized show.

With each pull request, a new dawn begins,

Celebrating changes, that's how everyone wins! 🎉


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.