UNPKG

nft-folder-blockchain-connector-besu

Version:

A NestJS-based blockchain connector that communicates with specific smart contracts from the NFT Folder project.

24 lines (23 loc) 1.08 kB
import { Interface, LogDescription, TransactionReceipt } from 'ethers'; import { BlockchainService } from 'src/shared/blockchain.service'; import { ConfigurationService } from 'src/configuration/configuration.service'; import { TransferEventDto } from '../dto/transfer-event.dto'; export interface TokenInformation { minterAddress: string; createdOn: string; lastUpdatedOn: string; } export declare class EventService { private readonly blockchainService; private readonly configurationService; private tokenContract; constructor(blockchainService: BlockchainService, configurationService: ConfigurationService); fetchTokenInformation(tokenId: number): Promise<TokenInformation>; fetchTransferEvents(tokenId: number): Promise<TransferEventDto[]>; private fetchMinterAddress; private fetchCreatedOn; private fetchLastUpdatedOn; private getAllPastEvents; private fetchEventInformationFromLastEvent; decodeLogs(contractInterface: Interface, transactionReceipt: TransactionReceipt, eventNames: string[]): LogDescription[]; }