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

Tron integration #205

Open
wants to merge 14 commits into
base: devel
Choose a base branch
from
Open

Tron integration #205

wants to merge 14 commits into from

Conversation

lok52
Copy link
Collaborator

@lok52 lok52 commented Sep 26, 2023

Closes #197

This PR introduces support for TRON blockchain as well as a massive refactoring of networking and utility code. Some highlights:

  1. Refactor config files. As config files became too cumbersome to maintain I added a more strict validation with zod library.
  2. Remove SentTxQueue. The previous transaction state model was not suitable for TRON, so SentTxQueue was removed. Now, all tx-related data is stored in PoolTxQueue jobs only.

Note:
There are still some modules that are not fully finished, yet. E.g. job updates with tx hash and confirmations are WIP.

const { transactions: txs, traceId, type } = job.data
const poolTxWorkerProcessor = async (job: Job<PoolTx<WorkerTxType>>) => {
// TODO: handle queue overflow
const { transaction, traceId, type } = job.data
Copy link

Choose a reason for hiding this comment

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

need to add transfer root, current root and pool id

@r0wdy1 r0wdy1 mentioned this pull request Jan 4, 2024
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.

Tron provider implementation
2 participants