Skip to content

Commit

Permalink
tron native support (#216)
Browse files Browse the repository at this point in the history
* implement tron-dump

* implement tron-ingest

* update interfaces

* describe tron-dump target in Dockerfile

* make tron-processor compilable

* try to index tron usdt

* decode tron log data

* describe all entities fields

* extract tron-data-raw from tron-dumper

* make tron-dump dependant on tron-data-raw

* make tron-ingest to use tron-data-raw

* extract interfaces into tron-data package

* refactor tron-processor

* configure dockerfile for tron-ingest

* add prometheus metrics to tron-dump

* add ts as a dependency

* make transaction result optional

* skip transaction info for a genesis block

* update types

* prepare tron stream

* set finality confirmation to 0

* adjust tron-usdt test project

* clean up artifacts

* validate archive data

* add changes

* delete chain-status-service from Dockerfile

* review adjustments

* validate data from http api

* update cancel_unfreezeV2_amount definition

* handle empty block responses

* fixes

* rewrite tron-stream to tron-processor

* adjust tron-usdt example

* change data chunk naming pattern

* add missing dependency to substrate-ingest

* changes
  • Loading branch information
tmcgroul authored Oct 7, 2024
1 parent a9b9e90 commit 0587198
Show file tree
Hide file tree
Showing 70 changed files with 5,964 additions and 1,748 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ COPY --from=substrate-metadata-service-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/substrate/substrate-metadata-service/bin/run.js"]


FROM builder AS tron-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/tron-dump


FROM node AS tron-dump
COPY --from=tron-dump-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/tron/tron-dump/bin/run.js"]


FROM builder AS tron-ingest-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/tron-ingest


FROM node AS tron-ingest
COPY --from=tron-ingest-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/tron/tron-ingest/bin/run.js"]


FROM builder AS fuel-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/fuel-dump

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/substrate-ingest",
"comment": "add typescript to dev dependencies",
"type": "patch"
}
],
"packageName": "@subsquid/substrate-ingest"
}
10 changes: 10 additions & 0 deletions common/changes/@subsquid/tron-data/tron_2024-09-25-13-23.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/tron-data",
"comment": "",
"type": "none"
}
],
"packageName": "@subsquid/tron-data"
}
10 changes: 10 additions & 0 deletions common/changes/@subsquid/tron-dump/tron_2024-09-25-13-23.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/tron-dump",
"comment": "",
"type": "none"
}
],
"packageName": "@subsquid/tron-dump"
}
10 changes: 10 additions & 0 deletions common/changes/@subsquid/tron-ingest/tron_2024-09-25-13-23.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/tron-ingest",
"comment": "",
"type": "none"
}
],
"packageName": "@subsquid/tron-ingest"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/tron-normalization",
"comment": "",
"type": "none"
}
],
"packageName": "@subsquid/tron-normalization"
}
10 changes: 10 additions & 0 deletions common/changes/@subsquid/tron-processor/tron_2024-10-04-16-35.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/tron-processor",
"comment": "",
"type": "none"
}
],
"packageName": "@subsquid/tron-processor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/util-internal-archive-layout",
"comment": "make getShortHash use last bytes",
"type": "major"
}
],
"packageName": "@subsquid/util-internal-archive-layout"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/util-internal-dump-cli",
"comment": "change data chunk naming pattern",
"type": "major"
}
],
"packageName": "@subsquid/util-internal-dump-cli"
}
4 changes: 3 additions & 1 deletion common/config/rush/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"@subsquid/solana-ingest",
"@subsquid/substrate-dump",
"@subsquid/substrate-ingest",
"@subsquid/substrate-metadata-service"
"@subsquid/substrate-metadata-service",
"@subsquid/tron-dump",
"@subsquid/tron-ingest"
],

/**
Expand Down
Loading

0 comments on commit 0587198

Please sign in to comment.