import { BlockchainCommonErrors, DomainName } from "@snickerdoodlelabs/objects"; import { ResultAsync } from "neverthrow"; import { IBaseContract } from "../interfaces/IBaseContract.js"; import { ContractOverrides, WrappedTransactionResponse } from "../interfaces/objects/index.js"; export interface IERC7529Contract extends IBaseContract { /** * Adds a domain to the contract storage * Only callable by address with DEFAULT_ADMIN_ROLE * If domain already exists, reverts with error message "Consent : Domain already added" * @param domain Domain name */ addDomain(domain: DomainName, overrides?: ContractOverrides): ResultAsync; /** * Removes a domain to the contract storage * Only callable by address with DEFAULT_ADMIN_ROLE * If domain does not exist, reverts with error message "Consent : Domain is not in the list" * @param domain Domain name */ removeDomain(domain: DomainName, overrides?: ContractOverrides): ResultAsync; /** * Returns true if the domain is part of the contract */ checkDomain(domain: DomainName): ResultAsync; } //# sourceMappingURL=IERC7529Contract.d.ts.map