Skip to content

Commit

Permalink
Refactor: share business logic between proof and sim event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed Mar 21, 2024
1 parent db81c77 commit 3c9bf9c
Show file tree
Hide file tree
Showing 5 changed files with 543 additions and 719 deletions.
20 changes: 10 additions & 10 deletions ponder.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createSchema } from "@ponder/core";
export default createSchema((p) => ({
Acknowledgement: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -19,7 +19,7 @@ export default createSchema((p) => ({
}),
CloseIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
portAddress: p.string(),
channelId: p.string(),
Expand All @@ -34,7 +34,7 @@ export default createSchema((p) => ({
}),
ConnectIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
portAddress: p.string(),
channelId: p.string(),
Expand All @@ -49,7 +49,7 @@ export default createSchema((p) => ({
}),
OpenIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
portAddress: p.string(),
version: p.string(),
Expand All @@ -69,7 +69,7 @@ export default createSchema((p) => ({
}),
OwnershipTransferred: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
previousOwner: p.string(),
newOwner: p.string(),
Expand All @@ -84,7 +84,7 @@ export default createSchema((p) => ({
}),
RecvPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
destPortAddress: p.string(),
destChannelId: p.string(),
Expand All @@ -100,7 +100,7 @@ export default createSchema((p) => ({
}),
SendPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -118,7 +118,7 @@ export default createSchema((p) => ({
}),
Timeout: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -134,7 +134,7 @@ export default createSchema((p) => ({
}),
WriteAckPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
writerPortAddress: p.string(),
writerChannelId: p.string(),
Expand All @@ -152,7 +152,7 @@ export default createSchema((p) => ({
}),
WriteTimeoutPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.hex(),
dispatcherAddress: p.string(),
dispatcherType: p.string(),
writerPortAddress: p.string(),
writerChannelId: p.string(),
Expand Down
Loading

0 comments on commit 3c9bf9c

Please sign in to comment.