diff --git a/packages/engine/paima-funnel/src/cde/cardanoTransfer.ts b/packages/engine/paima-funnel/src/cde/cardanoTransfer.ts index 1545660c4..d9dd4ed42 100644 --- a/packages/engine/paima-funnel/src/cde/cardanoTransfer.ts +++ b/packages/engine/paima-funnel/src/cde/cardanoTransfer.ts @@ -4,6 +4,7 @@ import { Routes, query } from '@dcspark/carp-client'; import type { TxAndBlockInfo } from '@dcspark/carp-client'; import { Transaction } from '@dcspark/cardano-multiplatform-lib-nodejs'; import type { BlockTxPair } from '@dcspark/carp-client'; +import { RelationFilterType } from '@dcspark/carp-client'; export default async function getCdeData( url: string, @@ -24,10 +25,18 @@ export default async function getCdeData( ): Promise { let result = [] as CdeCardanoTransferDatum[]; + const relationFilter = + RelationFilterType.Output | + RelationFilterType.Input | + RelationFilterType.StakeRegistration | + RelationFilterType.StakeDeregistration | + RelationFilterType.StakeDelegation | + RelationFilterType.Withdrawal; + while (true) { const event = await timeout( query(url, Routes.transactionHistory, { - // TODO: maybe it should be Output + relationFilter, addresses: [extension.credential], slotLimits: { from: fromAbsoluteSlot,