Skip to content

Commit

Permalink
Add gas fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed Mar 18, 2024
1 parent 256224a commit 0bacaa8
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 58 deletions.
30 changes: 30 additions & 0 deletions ponder.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
CloseIbcChannel: p.createTable({
id: p.string(),
Expand All @@ -23,6 +26,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
ConnectIbcChannel: p.createTable({
id: p.string(),
Expand All @@ -34,6 +40,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
OpenIbcChannel: p.createTable({
id: p.string(),
Expand All @@ -50,6 +59,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
OwnershipTransferred: p.createTable({
id: p.string(),
Expand All @@ -61,6 +73,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
RecvPacket: p.createTable({
id: p.string(),
Expand All @@ -73,6 +88,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
SendPacket: p.createTable({
id: p.string(),
Expand All @@ -87,6 +105,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
Timeout: p.createTable({
id: p.string(),
Expand All @@ -99,6 +120,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
WriteAckPacket: p.createTable({
id: p.string(),
Expand All @@ -113,6 +137,9 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
WriteTimeoutPacket: p.createTable({
id: p.string(),
Expand All @@ -128,5 +155,8 @@ export default createSchema((p) => ({
blockTimestamp: p.bigint(),
transactionHash: p.string(),
chainId: p.int(),
gas: p.bigint(),
maxFeePerGas: p.bigint().optional(),
maxPriorityFeePerGas: p.bigint().optional(),
}),
}));
Loading

0 comments on commit 0bacaa8

Please sign in to comment.