-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: reliable integrations [part 2] #90
Merged
Merged
Conversation
This file contains 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
b3623b1
to
dc34690
Compare
59a7bc4
to
e0aedb1
Compare
59ebb44
to
599cd17
Compare
9e38da9
to
aa88328
Compare
5fe9a36
to
07232e2
Compare
r4mmer
reviewed
Oct 18, 2023
1c080c9
to
3a062e6
Compare
glevco
reviewed
Nov 14, 2023
glevco
reviewed
Nov 14, 2023
37b0091
to
23d9ec9
Compare
…idNetwork and invalidStreamId guards
58b21fa
to
1b6cd1d
Compare
r4mmer
approved these changes
Nov 24, 2023
This was referenced Nov 24, 2023
glevco
approved these changes
Nov 24, 2023
andreabadesso
added a commit
that referenced
this pull request
Dec 11, 2023
* chore: removed old service files * chore: moved dev dependencies to devDependencies * chore: initial project structure * chore: improved readme * feat: added sync machine to the project with mocked services * feat: added services * feat: improved logging on service * feat: added services, utils and types * feat: added websocket actor * feat: added LRU cache and md5hash * chore: updated nodejs matrix to only v18.x * chore: basic eslintrc * chore: github actions * fix: added voided guard to check if a transaction is already voided before processing it * tests: added multiple tests for db methods * feat: improved error handling on initializing state * chore: added database migrations * chore: removed tests from tslint and added sequelize to dependencies * refactor: moved guards and actions to separate files and improved readability * tests: 100% coverage on guards * tests: machine tests * chore: added sequelizerc * chore: added eslintignore to gitignore * feat: throw if storing event lower than current * chore: removed seeders as they're no longer needed * fix: start stream failing on reconnections * feat: added more assertions to check if we're trying to store an event lower than the current * fix: logging lastDbSyncedEvent as a string * chore: updated dockerfile to install production dependencies on second stage * chore: updated lodash types version * fix: handling unvoided transactions * chore: added dirs to dockerignore * fix: invalid env variables on db config * refactor: updating LRU cache using an action instead of a global cache * feat: added debug logs on machine transitions and events * fix: added missing handleUnvoidedTx service * tests: refactored tests to reflect the new tx cache in context * tests: fixed failing mock on tests * chore: fix lint * docs: added docstrings to guards * refactor: using constant on RECONNECTING target * refactor: using a module to export all env variables instead of using them directly * refactor: removed unused export * fix: ACK issue on unvoided txs * docs: added docstrings to utils * fix: throwing error if input has no decoded input * refactor: well-defined types for websocket send event * refactor: typed event in context and removed useless ts-ignore * refactor: throwing error if transaction is already on database on handleVertexAccepted * refactor: throwing error when token creation event but no token name and symbol * docs: updated comment on genesis tx * docs: removed misleading comment * refactor: throwing error if no first block on metadata and handleTxFirstBlock state * refactor: organized types into groups * refactor: moved all types to types folder * fix: test failing on tx already in db * refactor: throwing error if error with undefined type is received * refactor: throwing error if event type is not FULLNODE_EVENT on invalidNetwork and invalidStreamId guards * refactor: invalidNetwork is now a guard * refactor: moved event types to event.ts * refactor: throwing error if invalid events on guards * refactor: using an enum for event types * refactor: using EventTypes enum on guards * refactor: using enum on FullNodeEventTypes * docs: added docstrings to actions * refactor: improved event legibility * refactor: split utils into multiple files * refactor: using event types * refactor: throw if decoded attribute on output * refactor: using const on sync machine states * fix: returning if event is received but no socket is ready * fix: throwing error if event type is not metadata_decided in unwrap event * refactor: using a model for ACK and START_STREAM messages * fix: error when asserting a zero-transactions address balance * refactor: ignoring already existing transactions in the new vertex accepted
andreabadesso
added a commit
that referenced
this pull request
Dec 11, 2023
* chore: removed old service files * chore: moved dev dependencies to devDependencies * chore: initial project structure * chore: improved readme * feat: added sync machine to the project with mocked services * feat: added services * feat: improved logging on service * feat: added services, utils and types * feat: added websocket actor * feat: added LRU cache and md5hash * chore: updated nodejs matrix to only v18.x * chore: basic eslintrc * chore: github actions * fix: added voided guard to check if a transaction is already voided before processing it * tests: added multiple tests for db methods * feat: improved error handling on initializing state * chore: added database migrations * chore: removed tests from tslint and added sequelize to dependencies * refactor: moved guards and actions to separate files and improved readability * tests: 100% coverage on guards * tests: machine tests * chore: added sequelizerc * chore: added eslintignore to gitignore * feat: throw if storing event lower than current * chore: removed seeders as they're no longer needed * fix: start stream failing on reconnections * feat: added more assertions to check if we're trying to store an event lower than the current * fix: logging lastDbSyncedEvent as a string * chore: updated dockerfile to install production dependencies on second stage * chore: updated lodash types version * fix: handling unvoided transactions * chore: added dirs to dockerignore * fix: invalid env variables on db config * refactor: updating LRU cache using an action instead of a global cache * feat: added debug logs on machine transitions and events * fix: added missing handleUnvoidedTx service * tests: refactored tests to reflect the new tx cache in context * tests: fixed failing mock on tests * chore: fix lint * docs: added docstrings to guards * refactor: using constant on RECONNECTING target * refactor: using a module to export all env variables instead of using them directly * refactor: removed unused export * fix: ACK issue on unvoided txs * docs: added docstrings to utils * fix: throwing error if input has no decoded input * refactor: well-defined types for websocket send event * refactor: typed event in context and removed useless ts-ignore * refactor: throwing error if transaction is already on database on handleVertexAccepted * refactor: throwing error when token creation event but no token name and symbol * docs: updated comment on genesis tx * docs: removed misleading comment * refactor: throwing error if no first block on metadata and handleTxFirstBlock state * refactor: organized types into groups * refactor: moved all types to types folder * fix: test failing on tx already in db * refactor: throwing error if error with undefined type is received * refactor: throwing error if event type is not FULLNODE_EVENT on invalidNetwork and invalidStreamId guards * refactor: invalidNetwork is now a guard * refactor: moved event types to event.ts * refactor: throwing error if invalid events on guards * refactor: using an enum for event types * refactor: using EventTypes enum on guards * refactor: using enum on FullNodeEventTypes * docs: added docstrings to actions * refactor: improved event legibility * refactor: split utils into multiple files * refactor: using event types * refactor: throw if decoded attribute on output * refactor: using const on sync machine states * fix: returning if event is received but no socket is ready * fix: throwing error if event type is not metadata_decided in unwrap event * refactor: using a model for ACK and START_STREAM messages * fix: error when asserting a zero-transactions address balance * refactor: ignoring already existing transactions in the new vertex accepted
This was referenced Feb 23, 2024
Merged
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.
Acceptance Criteria
Security Checklist