UNPKG

@safe-global/protocol-kit

Version:

SDK that facilitates the interaction with Safe Smart Accounts

40 lines 3.01 kB
import SafeWebAuthnSignerFactoryBaseContract from '../../../contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract'; import { SafeVersion, SafeWebAuthnSignerFactoryContract_v0_2_1_Abi, SafeWebAuthnSignerFactoryContract_v0_2_1_Contract, SafeWebAuthnSignerFactoryContract_v0_2_1_Function } from '@safe-global/types-kit'; import SafeProvider from '../../../SafeProvider'; import { DeploymentType } from '../../../types'; /** * SafeWebAuthnSignerFactoryContract_v0_2_1 is the implementation specific to the SafeWebAuthnSigner Factory contract version 0.2.1. * * This class specializes in handling interactions with the SafeWebAuthnSigner Factory contract version 0.2.1 using Ethers.js v6. * * @extends SafeWebAuthnSignerFactoryBaseContract<SafeWebAuthnSignerFactoryContract_v0_2_1_Abi> - Inherits from SafeWebAuthnSignerFactoryBaseContract with ABI specific to SafeWebAuthnSigner Factory contract version 0.2.1. * @implements SafeWebAuthnSignerFactoryContract_v0_2_1_Contract - Implements the interface specific to SafeWebAuthnSigner Factory contract version 0.2.1. */ declare class SafeWebAuthnSignerFactoryContract_v0_2_1 extends SafeWebAuthnSignerFactoryBaseContract<SafeWebAuthnSignerFactoryContract_v0_2_1_Abi> implements SafeWebAuthnSignerFactoryContract_v0_2_1_Contract { /** * Constructs an instance of SafeWebAuthnSignerFactoryContract_v0_2_1 * * @param chainId - The chain ID where the contract resides. * @param safeProvider - An instance of SafeProvider. * @param safeVersion - The version of the Safe contract. * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion. * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 0.2.1 is used. * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used. */ constructor(chainId: bigint, safeProvider: SafeProvider, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SafeWebAuthnSignerFactoryContract_v0_2_1_Abi, deploymentType?: DeploymentType); /** * Returns the address of the Signer. * @param args - Array[x, y, verifiers] * @returns Array[signer] */ getSigner: SafeWebAuthnSignerFactoryContract_v0_2_1_Function<'getSigner'>; /** * Returns the address of the Signer and deploy the signer contract if its not deployed yet. * @param args - Array[x, y, verifiers] * @returns Array[signer] */ createSigner: SafeWebAuthnSignerFactoryContract_v0_2_1_Function<'createSigner'>; isValidSignatureForSigner: SafeWebAuthnSignerFactoryContract_v0_2_1_Function<'isValidSignatureForSigner'>; } export default SafeWebAuthnSignerFactoryContract_v0_2_1; //# sourceMappingURL=SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts.map