Skip to content

Commit 0d5df81

Browse files
committed
fix: address substreams review comments
- Add missing bs58 dependency to Cargo.toml - Fix subgraph.yaml to use correct substreams/graph-entities pattern - Remove store_payments module (no handler implemented)
1 parent 1efac3a commit 0d5df81

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

packages/substreams-tron/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ substreams-tron = "0.1"
1616
prost = "0.11"
1717
prost-types = "0.11"
1818
hex = "0.4"
19+
bs58 = { version = "0.5", features = ["check"] }
1920

2021
[build-dependencies]
2122
prost-build = "0.11"

packages/substreams-tron/subgraph.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Substreams-powered Subgraph configuration for TRON payments
2+
# Note: This is a template. To deploy:
3+
# 1. Build the substreams: make build
4+
# 2. Package it: substreams pack
5+
# 3. Deploy to The Graph with this subgraph.yaml
26
specVersion: 1.0.0
37
description: Request Network TRON ERC20FeeProxy payment events
48
repository: https://github.com/RequestNetwork/requestNetwork
@@ -16,5 +20,3 @@ dataSources:
1620
mapping:
1721
apiVersion: 0.0.7
1822
kind: substreams/graph-entities
19-
file: ./src/mappings.ts
20-
handler: handlePayments

packages/substreams-tron/substreams.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ modules:
4040
mainnet_proxy_address=<address>
4141
nile_proxy_address=<address>
4242
43-
- name: store_payments
44-
kind: store
45-
updatePolicy: set
46-
valueType: proto:request.tron.v1.Payment
47-
inputs:
48-
- map: map_erc20_fee_proxy_payments
49-
doc: |
50-
Stores payment events indexed by payment reference for efficient querying.
51-
5243
network: tron
5344

5445
params:

0 commit comments

Comments
 (0)