/****************************************************************************** * * (C) 2022 AhnLab Blockchain Company, Inc. All rights reserved. * Any part of this source code can not be copied with any method without * prior written permission from the author or authorized person. * ******************************************************************************/ import { AccountService } from '../../usecase/accounts'; import { DappService } from '../../usecase/dapp'; import { GasService } from '../../usecase/gas'; import { GasFeeService } from '../../usecase/gas/gasFee'; import { NetworkService } from '../../usecase/network'; import { ProviderService } from '../../usecase/provider'; import { RuleService } from '../../usecase/rule'; import { TransactionService } from '../../usecase/transaction'; import { MutexService } from '../../usecase/transaction/mutex'; import { NonceTracker } from '../../usecase/transaction/nonceTracker'; import { TxQueueService } from '../../usecase/transaction/queue'; import { UserModel } from '../accounts/interface'; import { Account } from '../../schema/model'; declare class DappController { private dappService; private networkService; private accountService; private transactionService; private providerService; private ruleService; private gasService; private txQueueService; private nonceTracker; private gasFeeService; private mutexService; constructor(dappService: DappService, networkService: NetworkService, accountService: AccountService, transactionService: TransactionService, providerService: ProviderService, ruleService: RuleService, gasService: GasService, txQueueService: TxQueueService, nonceTracker: NonceTracker, gasFeeService: GasFeeService, mutexService: MutexService); sendDappTransaction(payload: any, account: Account, user: UserModel): Promise; confirmDappTransaction(unsignedTx: any, account: Account): Promise; getDappTxInfo: (account: Account) => Promise<{ contractAddress: string; domainName: string; data: string; from: string; gasPrice: string; gas: string; amount: string; to: string; method: string; txCategory: void; symbol: string; }>; updateDappTxInfo({ gasPrice, gasLimit, maxFeePerGas, maxPriorityFeePerGas, }: { gasPrice?: string; gasLimit?: string; maxFeePerGas?: string; maxPriorityFeePerGas?: string; }): Promise; getUnsignedTxForDappTx(activeAccount: Account): Promise<{ nonce: any; type: any; from: string; value: any; to: any; data: any; chainId: any; gasLimit: any; maxFeePerGas: any; maxPriorityFeePerGas: any; } | { nonce: any; type: any; from: string; value: any; to: any; data: any; chainId: any; gasLimit: any; gasPrice: any; }>; cancelTx(): void; registerAutoconfirm(unsignedTx: any, account: Account): void; handleDappResult(payload: any, result: any): void; handleDappError(payload: any, error: any): void; } export default DappController;