Skip to content
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

V0.11.9 #64

Merged
merged 29 commits into from
Feb 24, 2024
Merged

V0.11.9 #64

merged 29 commits into from
Feb 24, 2024

Conversation

pouya-eghbali
Copy link
Member

@pouya-eghbali pouya-eghbali commented Feb 23, 2024

  • Add context persistence with badger
  • Add event logs
  • Add follow-up on missed blocks
  • Add multichain
  • Add tables for event logs
  • Add RPC opcodes
  • Add standalone mode
  • Add mini-consensus
  • Config file changes

@pouya-eghbali pouya-eghbali added the WTD Trigger What-The-Diff label Feb 23, 2024
Copy link

what-the-diff bot commented Feb 23, 2024

PR Summary

Dependencies and Versions

  • Incorporation of external packages such as github.com/cespare/xxhash v1.1.0, github.com/pelletier/go-toml v1.2.0, and `github.com/KenshiTech/unchained/persistence, etc. into the application. This particular action would help extend the functionality of the system.
  • Updates have been made to key variables including Version and ProtocolVersion.

Core Changes: eventlog and eventlogarg

  • Creation of several new files and corresponding functionalities. For example, eventlog.go and eventlogarg.go, which are responsible for logging events and their corresponding arguments.
  • Numerous changes have been made in the eventlogarg.go file. These modifications introduce new functions and operations for the EventLogArg schema. They cover actions such as querying, updating, deleting and managing the EventLogArg schema's dynamic properties.
  • The new schema for eventlog and eventlogarg has been introduced.

Changes impacting Signer schema:

  • EventLogs edge has been added to the Signer schema along with corresponding QueryEventLogs() method which enables interactions with the new edge.
  • Few constants and functions like EdgeEventLogs, EventLogsTable, EventLogsInverseTable, ByEventLogsCount and ByEventLogs have been included in the signer.go file.
  • New methods for managing EventLogs have been added in SignerCreate, SignerQuery, SignerUpdate, and SignerUpdateOne structs that provides functionalities such as addition, querying, removal, saving and more.

Addition of GetNewUniV3Contract and GetBlockNumber methods:

  • A GetNewUniV3Contract method has been established for rpc.go file.
  • An updated GetBlockNumber method now provides the ability to get the block number.

Miscellaneous Changes:

  • New method createTask has been integrated into logs.go file which generates a function with custom configurations.
  • An optimized Start function now employs createTask function for process initiation.
  • The file uniswap.go in src/plugins/uniswap directory has been updated with new goods including a variable caser and new functionalities in multiple methods.
  • The client.go and server.go files were updated to use constants from the opcodes package, replacing the previously hardcoded numbers. This provides better code readability and maintainability.
  • A new file persistence.go has been added that focuses solely on database operations, promoting code modularity.

By implementing these changes, this PR brings significant enhancement to the system by introducing new schemas, extending existing ones, establishing new methods, improving code structure, and deploying code optimization.

@pouya-eghbali pouya-eghbali merged commit 4442a7e into master Feb 24, 2024
1 check passed
@pouya-eghbali pouya-eghbali deleted the v0.11.9 branch February 24, 2024 21:22
logicalangel pushed a commit that referenced this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WTD Trigger What-The-Diff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants