Skip to content

Commit

Permalink
Add from field
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed Mar 18, 2024
1 parent 0bacaa8 commit 439d02a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 55 deletions.
30 changes: 20 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.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -15,10 +15,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
CloseIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
portAddress: p.string(),
channelId: p.string(),
Expand All @@ -29,10 +30,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
ConnectIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
portAddress: p.string(),
channelId: p.string(),
Expand All @@ -43,10 +45,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
OpenIbcChannel: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
portAddress: p.string(),
version: p.string(),
Expand All @@ -62,10 +65,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
OwnershipTransferred: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
previousOwner: p.string(),
newOwner: p.string(),
Expand All @@ -76,10 +80,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
RecvPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
destPortAddress: p.string(),
destChannelId: p.string(),
Expand All @@ -91,10 +96,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
SendPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -108,10 +114,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
Timeout: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
sourcePortAddress: p.string(),
sourceChannelId: p.string(),
Expand All @@ -123,10 +130,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
WriteAckPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
writerPortAddress: p.string(),
writerChannelId: p.string(),
Expand All @@ -140,10 +148,11 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
WriteTimeoutPacket: p.createTable({
id: p.string(),
dispatcherAddress: p.string(),
dispatcherAddress: p.hex(),
dispatcherType: p.string(),
writerPortAddress: p.string(),
writerChannelId: p.string(),
Expand All @@ -158,5 +167,6 @@ export default createSchema((p) => ({
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
from: p.string(),
}),
}));
Loading

0 comments on commit 439d02a

Please sign in to comment.