diff --git a/ponder.schema.ts b/ponder.schema.ts index df40a23..16e7a13 100644 --- a/ponder.schema.ts +++ b/ponder.schema.ts @@ -265,6 +265,8 @@ export default createSchema((p) => ({ portId: p.string(), counterpartyPortId: p.string(), counterpartyChannelId: p.string(), + version: p.string(), + ordering: p.int(), connectionHops: p.string().list(), blockNumber: p.bigint(), blockTimestamp: p.bigint(), diff --git a/src/index.ts b/src/index.ts index 6484b23..63d0c55 100644 --- a/src/index.ts +++ b/src/index.ts @@ -65,6 +65,8 @@ async function channelOpenInit>(event: V channelId: '', portId: portId, connectionHops: [...connectionHops], + version: version, + ordering: event.args.ordering, counterpartyPortId: counterpartyPortId, counterpartyChannelId: "", blockNumber: event.block.number, @@ -141,9 +143,11 @@ async function channelOpenTry>(event: Vi data: { channelId: channelId, portId: portId, - connectionHops: [...connectionHops], counterpartyPortId: counterpartyPortId, counterpartyChannelId: counterpartyChannelId, + connectionHops: [...connectionHops], + version: version, + ordering: event.args.ordering, blockNumber: event.block.number, blockTimestamp: event.block.timestamp, transactionHash: event.transaction.hash,