nft-folder-blockchain-connector-besu
Version:
A NestJS-based blockchain connector that communicates with specific smart contracts from the NFT Folder project.
21 lines (20 loc) • 1.26 kB
TypeScript
import { JsonRpcProvider } from 'ethers';
import { TokenBaseService } from './token-base.services';
import { BlockchainService } from 'src/shared/blockchain.service';
import { ConfigurationService } from 'src/configuration/configuration.service';
import { TokenReadService } from './token-read.service';
import { TokenReadDto } from '../dto/token-read.dto';
import { TokenUpdateDto } from '../dto/token-update.dto';
import { EventService } from './event.service';
export declare class TokenUpdateService extends TokenBaseService {
protected readonly blockchainService: BlockchainService;
protected readonly configurationService: ConfigurationService;
protected readonly eventService: EventService;
private readonly tokenReadService;
protected readonly ethersProvider: JsonRpcProvider;
constructor(blockchainService: BlockchainService, configurationService: ConfigurationService, eventService: EventService, tokenReadService: TokenReadService, ethersProvider: JsonRpcProvider);
transferToken(tokenId: number, receiverAddress: string): Promise<TokenReadDto>;
updateToken(tokenId: number, tokenUpdateDto: TokenUpdateDto): Promise<TokenReadDto>;
private getValue;
confirmChild(tokenId: number, childId: number): Promise<void>;
}