evm-blockchain-tools
Version:
This is a collection of resuseable tools to support development for EVM-powered blockchains
22 lines (21 loc) • 961 B
TypeScript
import { TaskQueue } from "mvc-common-toolkit";
import { Signer } from "ethers";
import { TransactionHistoryStorage, IWeb3Gateway, SignerPicker } from "../common/interfaces";
import { ContractModel } from "../models";
export declare class BlockchainTransactionRegistry {
protected transactionStorage: TransactionHistoryStorage;
protected taskQueue: TaskQueue;
protected _providerMap: Map<string, IWeb3Gateway>;
private logger;
protected signerPicker: SignerPicker;
constructor(transactionStorage: TransactionHistoryStorage, signerPicker: SignerPicker, taskQueue: TaskQueue);
sendContractTransaction(contract: ContractModel, method: string, params: any[], options?: {
signerPicker?: SignerPicker;
timeoutInMs?: number;
minGas?: string;
}): Promise<any>;
protected reconcileSignerLastTx(signer: Signer, signerAddress: string): Promise<{
nextNonce: string;
isOverride: boolean;
}>;
}