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

Code Comments Removed #50

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions Osmosis/osmosis-starter/src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,34 +52,3 @@ export async function handleMessage(
await swapRoute.save();
}
}

/*
export async function handleBlock(block: CosmosBlock): Promise<void> {
// If you want to index each block in Cosmos (Osmosis), you could do that here
}
*/

/*
export async function handleTransaction(tx: CosmosTransaction): Promise<void> {
// If you want to index each transaction in Cosmos (Osmosis), you could do that here
const transactionRecord = Transaction.create({
id: tx.hash,
blockHeight: BigInt(tx.block.block.header.height),
timestamp: tx.block.block.header.time,
});
await transactionRecord.save();
}
*/

/*
export async function handleEvent(event: CosmosEvent): Promise<void> {
const eventRecord = ExecuteEvent.create({
id: `${event.tx.hash}-${event.msg.idx}-${event.idx}`,
blockHeight: BigInt(event.block.block.header.height),
txHash: event.tx.hash,
contractAddress: event.event.attributes.find(attr => attr.key === '_contract_address').value
});

await eventRecord.save();
}
*/
Loading