From cf5a7407662c5e2a146febf0e83706f7d52db04e Mon Sep 17 00:00:00 2001 From: Eugene Gostkin Date: Fri, 15 Dec 2023 02:09:44 +0100 Subject: [PATCH] number -> bigint for asset amount --- packages/engine/paima-sm/src/types.ts | 5 ++--- packages/node-sdk/paima-utils-backend/src/cde-access.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/engine/paima-sm/src/types.ts b/packages/engine/paima-sm/src/types.ts index 01ca42c1b..18e8757fd 100644 --- a/packages/engine/paima-sm/src/types.ts +++ b/packages/engine/paima-sm/src/types.ts @@ -81,11 +81,11 @@ interface CdeDatumCardanoProjectedNFTPayload { previousTxOutputIndex: number | undefined; asset: string; - amount: number; + amount: bigint; status: string; plutusDatum: string; - forHowLong: number | undefined; + forHowLong: bigint | undefined; } type ChainDataExtensionPayload = @@ -290,7 +290,6 @@ export type ChainDataExtensionCardanoDelegation = ChainDataExtensionBase & export const ChainDataExtensionCardanoProjectedNFTConfig = Type.Object({ type: Type.Literal(CdeEntryTypeName.CardanoProjectedNFT), - contract: Type.String(), scheduledPrefix: Type.String(), startSlot: Type.Number(), stopSlot: Type.Optional(Type.Number()), diff --git a/packages/node-sdk/paima-utils-backend/src/cde-access.ts b/packages/node-sdk/paima-utils-backend/src/cde-access.ts index bdaec0bab..400a68f64 100644 --- a/packages/node-sdk/paima-utils-backend/src/cde-access.ts +++ b/packages/node-sdk/paima-utils-backend/src/cde-access.ts @@ -171,7 +171,7 @@ export async function getCardanoAddressDelegation( } /** - * Fetch the pool this address is delegating to, if any. + * Fetch the NFTs that are projected by particular PKH */ export async function getCardanoAddressProjectedNfts( readonlyDBConn: Pool,