dop-stick
Version:
Source control tooling for versionable-upgradeable smart contracts
32 lines • 979 B
TypeScript
import { ethers } from 'ethers';
export declare class ParallelWalletGenerator {
private wallets;
private nonceTracker;
private provider;
private minFundingAmount;
private mainSigner;
private currentIndex;
constructor(mainSigner: ethers.Signer, minFundingAmount?: string, provider?: ethers.providers.Provider);
/**
* Get the main signer used for initialization
*/
getMainSigner(): ethers.Signer;
/**
* Get wallet for specific module with nonce management
*/
getWalletForModule(moduleName: string): Promise<ethers.Wallet>;
/**
* Get next nonce for a wallet
*/
getNextNonce(walletAddress: string): Promise<number>;
getWalletAddresses(): string[];
/**
* Reset wallet and nonce state, including currentIndex
*/
reset(): void;
/**
* Get next wallet for parallel deployment
*/
getNextWallet(): ethers.Wallet;
}
//# sourceMappingURL=parallelWalletGenerator.d.ts.map