Skip to content

Commit

Permalink
number -> bigint for asset amount
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Dec 15, 2023
1 parent 97e3cd5 commit cf5a740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/engine/paima-sm/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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()),
Expand Down
2 changes: 1 addition & 1 deletion packages/node-sdk/paima-utils-backend/src/cde-access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf5a740

Please sign in to comment.