/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../common"; export type AttestationRequestDataStruct = { recipient: AddressLike; expirationTime: BigNumberish; revocable: boolean; refUID: BytesLike; data: BytesLike; value: BigNumberish; }; export type AttestationRequestDataStructOutput = [ recipient: string, expirationTime: bigint, revocable: boolean, refUID: string, data: string, value: bigint ] & { recipient: string; expirationTime: bigint; revocable: boolean; refUID: string; data: string; value: bigint; }; export type AttestationRequestStruct = { schema: BytesLike; data: AttestationRequestDataStruct; }; export type AttestationRequestStructOutput = [ schema: string, data: AttestationRequestDataStructOutput ] & { schema: string; data: AttestationRequestDataStructOutput }; export type SignatureStruct = { v: BigNumberish; r: BytesLike; s: BytesLike }; export type SignatureStructOutput = [v: bigint, r: string, s: string] & { v: bigint; r: string; s: string; }; export type DelegatedAttestationRequestStruct = { schema: BytesLike; data: AttestationRequestDataStruct; signature: SignatureStruct; attester: AddressLike; deadline: BigNumberish; }; export type DelegatedAttestationRequestStructOutput = [ schema: string, data: AttestationRequestDataStructOutput, signature: SignatureStructOutput, attester: string, deadline: bigint ] & { schema: string; data: AttestationRequestDataStructOutput; signature: SignatureStructOutput; attester: string; deadline: bigint; }; export type AttestationStruct = { uid: BytesLike; schema: BytesLike; time: BigNumberish; expirationTime: BigNumberish; revocationTime: BigNumberish; refUID: BytesLike; recipient: AddressLike; attester: AddressLike; revocable: boolean; data: BytesLike; }; export type AttestationStructOutput = [ uid: string, schema: string, time: bigint, expirationTime: bigint, revocationTime: bigint, refUID: string, recipient: string, attester: string, revocable: boolean, data: string ] & { uid: string; schema: string; time: bigint; expirationTime: bigint; revocationTime: bigint; refUID: string; recipient: string; attester: string; revocable: boolean; data: string; }; export type MultiAttestationRequestStruct = { schema: BytesLike; data: AttestationRequestDataStruct[]; }; export type MultiAttestationRequestStructOutput = [ schema: string, data: AttestationRequestDataStructOutput[] ] & { schema: string; data: AttestationRequestDataStructOutput[] }; export type MultiDelegatedAttestationRequestStruct = { schema: BytesLike; data: AttestationRequestDataStruct[]; signatures: SignatureStruct[]; attester: AddressLike; deadline: BigNumberish; }; export type MultiDelegatedAttestationRequestStructOutput = [ schema: string, data: AttestationRequestDataStructOutput[], signatures: SignatureStructOutput[], attester: string, deadline: bigint ] & { schema: string; data: AttestationRequestDataStructOutput[]; signatures: SignatureStructOutput[]; attester: string; deadline: bigint; }; export type RevocationRequestDataStruct = { uid: BytesLike; value: BigNumberish; }; export type RevocationRequestDataStructOutput = [uid: string, value: bigint] & { uid: string; value: bigint; }; export type MultiRevocationRequestStruct = { schema: BytesLike; data: RevocationRequestDataStruct[]; }; export type MultiRevocationRequestStructOutput = [ schema: string, data: RevocationRequestDataStructOutput[] ] & { schema: string; data: RevocationRequestDataStructOutput[] }; export type MultiDelegatedRevocationRequestStruct = { schema: BytesLike; data: RevocationRequestDataStruct[]; signatures: SignatureStruct[]; revoker: AddressLike; deadline: BigNumberish; }; export type MultiDelegatedRevocationRequestStructOutput = [ schema: string, data: RevocationRequestDataStructOutput[], signatures: SignatureStructOutput[], revoker: string, deadline: bigint ] & { schema: string; data: RevocationRequestDataStructOutput[]; signatures: SignatureStructOutput[]; revoker: string; deadline: bigint; }; export type RevocationRequestStruct = { schema: BytesLike; data: RevocationRequestDataStruct; }; export type RevocationRequestStructOutput = [ schema: string, data: RevocationRequestDataStructOutput ] & { schema: string; data: RevocationRequestDataStructOutput }; export type DelegatedRevocationRequestStruct = { schema: BytesLike; data: RevocationRequestDataStruct; signature: SignatureStruct; revoker: AddressLike; deadline: BigNumberish; }; export type DelegatedRevocationRequestStructOutput = [ schema: string, data: RevocationRequestDataStructOutput, signature: SignatureStructOutput, revoker: string, deadline: bigint ] & { schema: string; data: RevocationRequestDataStructOutput; signature: SignatureStructOutput; revoker: string; deadline: bigint; }; export interface EASInterface extends Interface { getFunction( nameOrSignature: | "attest" | "attestByDelegation" | "eip712Domain" | "getAttestTypeHash" | "getAttestation" | "getDomainSeparator" | "getName" | "getNonce" | "getRevokeOffchain" | "getRevokeTypeHash" | "getSchemaRegistry" | "getTimestamp" | "increaseNonce" | "isAttestationValid" | "multiAttest" | "multiAttestByDelegation" | "multiRevoke" | "multiRevokeByDelegation" | "multiRevokeOffchain" | "multiTimestamp" | "revoke" | "revokeByDelegation" | "revokeOffchain" | "timestamp" | "version" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Attested" | "EIP712DomainChanged" | "NonceIncreased" | "Revoked" | "RevokedOffchain" | "Timestamped" ): EventFragment; encodeFunctionData( functionFragment: "attest", values: [AttestationRequestStruct] ): string; encodeFunctionData( functionFragment: "attestByDelegation", values: [DelegatedAttestationRequestStruct] ): string; encodeFunctionData( functionFragment: "eip712Domain", values?: undefined ): string; encodeFunctionData( functionFragment: "getAttestTypeHash", values?: undefined ): string; encodeFunctionData( functionFragment: "getAttestation", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "getDomainSeparator", values?: undefined ): string; encodeFunctionData(functionFragment: "getName", values?: undefined): string; encodeFunctionData( functionFragment: "getNonce", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getRevokeOffchain", values: [AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "getRevokeTypeHash", values?: undefined ): string; encodeFunctionData( functionFragment: "getSchemaRegistry", values?: undefined ): string; encodeFunctionData( functionFragment: "getTimestamp", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "increaseNonce", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isAttestationValid", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "multiAttest", values: [MultiAttestationRequestStruct[]] ): string; encodeFunctionData( functionFragment: "multiAttestByDelegation", values: [MultiDelegatedAttestationRequestStruct[]] ): string; encodeFunctionData( functionFragment: "multiRevoke", values: [MultiRevocationRequestStruct[]] ): string; encodeFunctionData( functionFragment: "multiRevokeByDelegation", values: [MultiDelegatedRevocationRequestStruct[]] ): string; encodeFunctionData( functionFragment: "multiRevokeOffchain", values: [BytesLike[]] ): string; encodeFunctionData( functionFragment: "multiTimestamp", values: [BytesLike[]] ): string; encodeFunctionData( functionFragment: "revoke", values: [RevocationRequestStruct] ): string; encodeFunctionData( functionFragment: "revokeByDelegation", values: [DelegatedRevocationRequestStruct] ): string; encodeFunctionData( functionFragment: "revokeOffchain", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "timestamp", values: [BytesLike] ): string; encodeFunctionData(functionFragment: "version", values?: undefined): string; decodeFunctionResult(functionFragment: "attest", data: BytesLike): Result; decodeFunctionResult( functionFragment: "attestByDelegation", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "eip712Domain", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAttestTypeHash", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAttestation", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getDomainSeparator", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getName", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getNonce", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getRevokeOffchain", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRevokeTypeHash", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getSchemaRegistry", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getTimestamp", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "increaseNonce", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isAttestationValid", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiAttest", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiAttestByDelegation", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiRevoke", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiRevokeByDelegation", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiRevokeOffchain", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "multiTimestamp", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "revoke", data: BytesLike): Result; decodeFunctionResult( functionFragment: "revokeByDelegation", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "revokeOffchain", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "timestamp", data: BytesLike): Result; decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; } export namespace AttestedEvent { export type InputTuple = [ recipient: AddressLike, attester: AddressLike, uid: BytesLike, schemaUID: BytesLike ]; export type OutputTuple = [ recipient: string, attester: string, uid: string, schemaUID: string ]; export interface OutputObject { recipient: string; attester: string; uid: string; schemaUID: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace EIP712DomainChangedEvent { export type InputTuple = []; export type OutputTuple = []; export interface OutputObject {} export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace NonceIncreasedEvent { export type InputTuple = [oldNonce: BigNumberish, newNonce: BigNumberish]; export type OutputTuple = [oldNonce: bigint, newNonce: bigint]; export interface OutputObject { oldNonce: bigint; newNonce: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RevokedEvent { export type InputTuple = [ recipient: AddressLike, attester: AddressLike, uid: BytesLike, schemaUID: BytesLike ]; export type OutputTuple = [ recipient: string, attester: string, uid: string, schemaUID: string ]; export interface OutputObject { recipient: string; attester: string; uid: string; schemaUID: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RevokedOffchainEvent { export type InputTuple = [ revoker: AddressLike, data: BytesLike, timestamp: BigNumberish ]; export type OutputTuple = [revoker: string, data: string, timestamp: bigint]; export interface OutputObject { revoker: string; data: string; timestamp: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TimestampedEvent { export type InputTuple = [data: BytesLike, timestamp: BigNumberish]; export type OutputTuple = [data: string, timestamp: bigint]; export interface OutputObject { data: string; timestamp: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface EAS extends BaseContract { connect(runner?: ContractRunner | null): EAS; waitForDeployment(): Promise; interface: EASInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; attest: TypedContractMethod< [request: AttestationRequestStruct], [string], "payable" >; attestByDelegation: TypedContractMethod< [delegatedRequest: DelegatedAttestationRequestStruct], [string], "payable" >; eip712Domain: TypedContractMethod< [], [ [string, string, string, bigint, string, string, bigint[]] & { fields: string; name: string; version: string; chainId: bigint; verifyingContract: string; salt: string; extensions: bigint[]; } ], "view" >; getAttestTypeHash: TypedContractMethod<[], [string], "view">; getAttestation: TypedContractMethod< [uid: BytesLike], [AttestationStructOutput], "view" >; getDomainSeparator: TypedContractMethod<[], [string], "view">; getName: TypedContractMethod<[], [string], "view">; getNonce: TypedContractMethod<[account: AddressLike], [bigint], "view">; getRevokeOffchain: TypedContractMethod< [revoker: AddressLike, data: BytesLike], [bigint], "view" >; getRevokeTypeHash: TypedContractMethod<[], [string], "view">; getSchemaRegistry: TypedContractMethod<[], [string], "view">; getTimestamp: TypedContractMethod<[data: BytesLike], [bigint], "view">; increaseNonce: TypedContractMethod< [newNonce: BigNumberish], [void], "nonpayable" >; isAttestationValid: TypedContractMethod<[uid: BytesLike], [boolean], "view">; multiAttest: TypedContractMethod< [multiRequests: MultiAttestationRequestStruct[]], [string[]], "payable" >; multiAttestByDelegation: TypedContractMethod< [multiDelegatedRequests: MultiDelegatedAttestationRequestStruct[]], [string[]], "payable" >; multiRevoke: TypedContractMethod< [multiRequests: MultiRevocationRequestStruct[]], [void], "payable" >; multiRevokeByDelegation: TypedContractMethod< [multiDelegatedRequests: MultiDelegatedRevocationRequestStruct[]], [void], "payable" >; multiRevokeOffchain: TypedContractMethod< [data: BytesLike[]], [bigint], "nonpayable" >; multiTimestamp: TypedContractMethod< [data: BytesLike[]], [bigint], "nonpayable" >; revoke: TypedContractMethod< [request: RevocationRequestStruct], [void], "payable" >; revokeByDelegation: TypedContractMethod< [delegatedRequest: DelegatedRevocationRequestStruct], [void], "payable" >; revokeOffchain: TypedContractMethod< [data: BytesLike], [bigint], "nonpayable" >; timestamp: TypedContractMethod<[data: BytesLike], [bigint], "nonpayable">; version: TypedContractMethod<[], [string], "view">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "attest" ): TypedContractMethod< [request: AttestationRequestStruct], [string], "payable" >; getFunction( nameOrSignature: "attestByDelegation" ): TypedContractMethod< [delegatedRequest: DelegatedAttestationRequestStruct], [string], "payable" >; getFunction( nameOrSignature: "eip712Domain" ): TypedContractMethod< [], [ [string, string, string, bigint, string, string, bigint[]] & { fields: string; name: string; version: string; chainId: bigint; verifyingContract: string; salt: string; extensions: bigint[]; } ], "view" >; getFunction( nameOrSignature: "getAttestTypeHash" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getAttestation" ): TypedContractMethod<[uid: BytesLike], [AttestationStructOutput], "view">; getFunction( nameOrSignature: "getDomainSeparator" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getName" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getNonce" ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "getRevokeOffchain" ): TypedContractMethod< [revoker: AddressLike, data: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "getRevokeTypeHash" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getSchemaRegistry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "getTimestamp" ): TypedContractMethod<[data: BytesLike], [bigint], "view">; getFunction( nameOrSignature: "increaseNonce" ): TypedContractMethod<[newNonce: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "isAttestationValid" ): TypedContractMethod<[uid: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "multiAttest" ): TypedContractMethod< [multiRequests: MultiAttestationRequestStruct[]], [string[]], "payable" >; getFunction( nameOrSignature: "multiAttestByDelegation" ): TypedContractMethod< [multiDelegatedRequests: MultiDelegatedAttestationRequestStruct[]], [string[]], "payable" >; getFunction( nameOrSignature: "multiRevoke" ): TypedContractMethod< [multiRequests: MultiRevocationRequestStruct[]], [void], "payable" >; getFunction( nameOrSignature: "multiRevokeByDelegation" ): TypedContractMethod< [multiDelegatedRequests: MultiDelegatedRevocationRequestStruct[]], [void], "payable" >; getFunction( nameOrSignature: "multiRevokeOffchain" ): TypedContractMethod<[data: BytesLike[]], [bigint], "nonpayable">; getFunction( nameOrSignature: "multiTimestamp" ): TypedContractMethod<[data: BytesLike[]], [bigint], "nonpayable">; getFunction( nameOrSignature: "revoke" ): TypedContractMethod<[request: RevocationRequestStruct], [void], "payable">; getFunction( nameOrSignature: "revokeByDelegation" ): TypedContractMethod< [delegatedRequest: DelegatedRevocationRequestStruct], [void], "payable" >; getFunction( nameOrSignature: "revokeOffchain" ): TypedContractMethod<[data: BytesLike], [bigint], "nonpayable">; getFunction( nameOrSignature: "timestamp" ): TypedContractMethod<[data: BytesLike], [bigint], "nonpayable">; getFunction( nameOrSignature: "version" ): TypedContractMethod<[], [string], "view">; getEvent( key: "Attested" ): TypedContractEvent< AttestedEvent.InputTuple, AttestedEvent.OutputTuple, AttestedEvent.OutputObject >; getEvent( key: "EIP712DomainChanged" ): TypedContractEvent< EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject >; getEvent( key: "NonceIncreased" ): TypedContractEvent< NonceIncreasedEvent.InputTuple, NonceIncreasedEvent.OutputTuple, NonceIncreasedEvent.OutputObject >; getEvent( key: "Revoked" ): TypedContractEvent< RevokedEvent.InputTuple, RevokedEvent.OutputTuple, RevokedEvent.OutputObject >; getEvent( key: "RevokedOffchain" ): TypedContractEvent< RevokedOffchainEvent.InputTuple, RevokedOffchainEvent.OutputTuple, RevokedOffchainEvent.OutputObject >; getEvent( key: "Timestamped" ): TypedContractEvent< TimestampedEvent.InputTuple, TimestampedEvent.OutputTuple, TimestampedEvent.OutputObject >; filters: { "Attested(address,address,bytes32,bytes32)": TypedContractEvent< AttestedEvent.InputTuple, AttestedEvent.OutputTuple, AttestedEvent.OutputObject >; Attested: TypedContractEvent< AttestedEvent.InputTuple, AttestedEvent.OutputTuple, AttestedEvent.OutputObject >; "EIP712DomainChanged()": TypedContractEvent< EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject >; EIP712DomainChanged: TypedContractEvent< EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject >; "NonceIncreased(uint256,uint256)": TypedContractEvent< NonceIncreasedEvent.InputTuple, NonceIncreasedEvent.OutputTuple, NonceIncreasedEvent.OutputObject >; NonceIncreased: TypedContractEvent< NonceIncreasedEvent.InputTuple, NonceIncreasedEvent.OutputTuple, NonceIncreasedEvent.OutputObject >; "Revoked(address,address,bytes32,bytes32)": TypedContractEvent< RevokedEvent.InputTuple, RevokedEvent.OutputTuple, RevokedEvent.OutputObject >; Revoked: TypedContractEvent< RevokedEvent.InputTuple, RevokedEvent.OutputTuple, RevokedEvent.OutputObject >; "RevokedOffchain(address,bytes32,uint64)": TypedContractEvent< RevokedOffchainEvent.InputTuple, RevokedOffchainEvent.OutputTuple, RevokedOffchainEvent.OutputObject >; RevokedOffchain: TypedContractEvent< RevokedOffchainEvent.InputTuple, RevokedOffchainEvent.OutputTuple, RevokedOffchainEvent.OutputObject >; "Timestamped(bytes32,uint64)": TypedContractEvent< TimestampedEvent.InputTuple, TimestampedEvent.OutputTuple, TimestampedEvent.OutputObject >; Timestamped: TypedContractEvent< TimestampedEvent.InputTuple, TimestampedEvent.OutputTuple, TimestampedEvent.OutputObject >; }; }