import { BigNumber, BigNumberish, ethers, Signer } from "ethers"; import { AddressRegistry } from "../typechain-types/contracts/AddressRegistry"; import SignerOrProvider from "./helpers/SignerOrProvider"; import SafeSingletonFactory from "./SafeSingletonFactory"; /** * A wrapper around the `AddressRegistry` contract to provide a more ergonomic * interface, especially for `reverseLookup`. */ export default class AddressRegistryWrapper { registry: AddressRegistry; constructor(registry: AddressRegistry); /** * Deploys a new `AddressRegistry` contract the traditional way. */ static deployNew(signer: Signer): Promise; /** * Uses Gnosis Safe's factory to get an `AddressRegistry` contract at a * predetermined address. Deploys if it doesn't already exist. */ static connectOrDeploy(signerOrFactory: Signer | SafeSingletonFactory, salt?: ethers.utils.BytesLike): Promise; /** * Uses Gnosis Safe's factory to get an `AddressRegistry` contract at a * predetermined address. Returns undefined if it doesn't exist. */ static connectIfDeployed(signerOrProvider: SignerOrProvider, salt?: ethers.utils.BytesLike): Promise; /** * Uses an id to lookup an address, the same way that happens on chain. */ lookup(id: BigNumberish): Promise; /** * Uses an address to lookup an id - the reverse of what happens on chain, by * making use of the indexed `AddressRegistered` event. */ reverseLookup(address: string): Promise; /** * Registers an address and returns the id that was assigned to it. */ register(address: string): Promise; /** * Registers an address if it hasn't already been registered, and returns the * id that was assigned to it. */ registerIfNeeded(address: string): Promise; } //# sourceMappingURL=AddressRegistryWrapper.d.ts.map