Mistakes in indexer logs #1260
-
Hi! I'm working on an indexer for my project
This is my manifest file:
My graphql file:
My lib.rs file:
With these commands I start the database:
After
But I'm expecting to see something like this
What could be the issue here and how to fix it?
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
Beta Was this translation helpful? Give feedback.
-
it dont helps me... i dont see height block... |
Beta Was this translation helpful? Give feedback.
-
i think i fix it...the problem was in the trace settings
|
Beta Was this translation helpful? Give feedback.
-
fn saprana_indexer_handler(block: BlockData) {
let height = block.height;
{
Logger::info(
&{
let res = ::alloc::fmt::format(format_args!("Height: {0}", height));
res
},
)
};
}
fn handle_event_creation(data: CreateEventLog) {
let entry = EventEntry {
id: data.event.id,
owner: data.event.owner,
name: data.event.name.to_string(),
max_participantes: data.event.max_participantes,
deadline: data.event.deadline,
ticket_price: data.event.ticket_price,
tickets_sold: data.event.tickets_sold,
balance: data.event.balance,
};
{
Logger::info(
&{
let res = ::alloc::fmt::format(
format_args!("CreateEventLog {0:#?}", entry),
);
res
},
)
};
entry.save();
}
fn handle_buy_ticket(data: BuyTicketLog) {
let entry = BuyTicketEntry {
id: data.timestamp,
event_id: data.event.id,
timestamp: data.timestamp,
buyer: data.buyer,
ticket_id: data.ticket_id,
ticket_number: data.ticket_number,
};
{
Logger::info(
&{
let res = ::alloc::fmt::format(
format_args!("BuyTicketLog {0:#?}", entry),
);
res
},
)
};
entry.save();
}
fn handle_claim(data: ClaimLog) {
let entry = ClaimEntry {
id: data.timestamp,
event_id: data.event.id,
timestamp: data.timestamp,
amount: data.amount,
};
{
Logger::info(
&{
let res = ::alloc::fmt::format(format_args!("ClaimLog {0:#?}", entry));
res
},
)
};
entry.save();
} |
Beta Was this translation helpful? Give feedback.
-
its ok)) thanks |
Beta Was this translation helpful? Give feedback.
@PaulZhemanov
forc index build