Skip to content

Commit

Permalink
Iris example project update
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Nov 20, 2023
1 parent 6275c1d commit 43ef63e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Iris/iris-starter/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- -f=/app
- --db-schema=app
- --workers=4
- --batch-size=1
- --batch-size=30
- --unfinalized-blocks=true
healthcheck:
test: ["CMD", "curl", "-f", "http://subquery-node:3000/ready"]
Expand Down
2 changes: 1 addition & 1 deletion Iris/iris-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"ts-proto": "^1.112.1",
"tslib": "^2.3.1"
}
}
}
2 changes: 2 additions & 0 deletions Iris/iris-starter/src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export async function handleTransaction(tx: CosmosTransaction): Promise<void> {
export async function handleMessage(
msg: CosmosMessage<MsgSend>
): Promise<void> {
logger.info(`Messsage found at ${msg.block.blockId}`);
const messageRecord = Message.create({
id: `${msg.tx.hash}-${msg.idx}`,
blockHeight: BigInt(msg.block.block.header.height),
Expand All @@ -41,6 +42,7 @@ export async function handleMessage(
}

export async function handleEvent(event: CosmosEvent): Promise<void> {
logger.info(`Event found at ${event.block.blockId}`);
const eventRecord = TransferEvent.create({
id: `${event.tx.hash}-${event.msg.idx}-${event.idx}`,
blockHeight: BigInt(event.block.block.header.height),
Expand Down

0 comments on commit 43ef63e

Please sign in to comment.