Variable erc7579ReadsConst

erc7579Reads: {
    toGetActiveHookReads: (
        account: ModularSmartAccount,
    ) => Promise<
        ReadContractParameters<
            {
                inputs: never[];
                name: string;
                outputs: { internalType: string; name: string; type: string }[];
                stateMutability: string;
                type: string;
            }[],
            "getActiveHook",
            [],
        >[],
    >;
    toGetFallbackBySelectorReads: (
        account: ModularSmartAccount,
        selector: `0x${string}`,
    ) => Promise<
        ReadContractParameters<
            {
                inputs: { internalType: string; name: string; type: string }[];
                name: string;
                outputs: { internalType: string; name: string; type: string }[];
                stateMutability: string;
                type: string;
            }[],
            "getFallbackHandlerBySelector",
            [`0x${string}`],
        >[],
    >;
    toGetInstalledExecutorsReads: (
        account: ModularSmartAccount,
        __namedParameters: GetInstalledExecutorsParameters<ModularSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { internalType: "address"; name: "cursor"; type: "address" },
                        { internalType: "uint256"; name: "size"; type: "uint256" },
                    ];
                    name: "getExecutorsPaginated";
                    outputs: readonly [
                        { internalType: "address[]"; name: "array"; type: "address[]" },
                        { internalType: "address"; name: "next"; type: "address" },
                    ];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "getExecutorsPaginated",
            [`0x${string}`, bigint],
        >[],
    >;
    toGetInstalledValidatorsReads: (
        account: ModularSmartAccount,
        __namedParameters: GetInstalledValidatorsParameters<ModularSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { internalType: "address"; name: "cursor"; type: "address" },
                        { internalType: "uint256"; name: "size"; type: "uint256" },
                    ];
                    name: "getValidatorsPaginated";
                    outputs: readonly [
                        { internalType: "address[]"; name: "array"; type: "address[]" },
                        { internalType: "address"; name: "next"; type: "address" },
                    ];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "getValidatorsPaginated",
            [`0x${string}`, bigint],
        >[],
    >;
    toIsModuleInstalledReads: (
        account: ModularSmartAccount,
        __namedParameters: ModuleMeta,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { name: "moduleTypeId"; type: "uint256" },
                        { name: "module"; type: "address" },
                        { name: "additionalContext"; type: "bytes" },
                    ];
                    name: "isModuleInstalled";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "isModuleInstalled",
            [bigint, `0x${string}`, `0x${string}`],
        >[],
    >;
    toSupportsExecutionModeReads: (
        account: ModularSmartAccount,
        __namedParameters: ExecutionMode<CallType>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [{ name: "encodedMode"; type: "bytes32" }];
                    name: "supportsExecutionMode";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "supportsExecutionMode",
            [`0x${string}`],
        >[],
    >;
    toSupportsModuleReads: <
        TSmartAccount extends
            | undefined
            | object & Assign_<
                SmartAccountImplementation<Abi, EntryPointVersion, object>,
                {
                    address: `0x${string}`;
                    getNonce: (parameters?: { key?: bigint }) => Promise<bigint>;
                    isDeployed: () => Promise<boolean>;
                    type: "smart";
                },
            > & {
                address: `0x${string}`;
                getNonce: (parameters?: { key?: bigint }) => Promise<bigint>;
                isDeployed: () => Promise<boolean>;
                type: "smart";
            },
    >(
        account: ModularSmartAccount,
        __namedParameters: SupportsModuleParameters<TSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [{ name: "moduleTypeId"; type: "uint256" }];
                    name: "supportsModule";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "supportsModule",
            [bigint],
        >[],
    >;
} = ...

Type declaration

  • toGetActiveHookReads: (
        account: ModularSmartAccount,
    ) => Promise<
        ReadContractParameters<
            {
                inputs: never[];
                name: string;
                outputs: { internalType: string; name: string; type: string }[];
                stateMutability: string;
                type: string;
            }[],
            "getActiveHook",
            [],
        >[],
    >
  • toGetFallbackBySelectorReads: (
        account: ModularSmartAccount,
        selector: `0x${string}`,
    ) => Promise<
        ReadContractParameters<
            {
                inputs: { internalType: string; name: string; type: string }[];
                name: string;
                outputs: { internalType: string; name: string; type: string }[];
                stateMutability: string;
                type: string;
            }[],
            "getFallbackHandlerBySelector",
            [`0x${string}`],
        >[],
    >
  • toGetInstalledExecutorsReads: (
        account: ModularSmartAccount,
        __namedParameters: GetInstalledExecutorsParameters<ModularSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { internalType: "address"; name: "cursor"; type: "address" },
                        { internalType: "uint256"; name: "size"; type: "uint256" },
                    ];
                    name: "getExecutorsPaginated";
                    outputs: readonly [
                        { internalType: "address[]"; name: "array"; type: "address[]" },
                        { internalType: "address"; name: "next"; type: "address" },
                    ];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "getExecutorsPaginated",
            [`0x${string}`, bigint],
        >[],
    >
  • toGetInstalledValidatorsReads: (
        account: ModularSmartAccount,
        __namedParameters: GetInstalledValidatorsParameters<ModularSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { internalType: "address"; name: "cursor"; type: "address" },
                        { internalType: "uint256"; name: "size"; type: "uint256" },
                    ];
                    name: "getValidatorsPaginated";
                    outputs: readonly [
                        { internalType: "address[]"; name: "array"; type: "address[]" },
                        { internalType: "address"; name: "next"; type: "address" },
                    ];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "getValidatorsPaginated",
            [`0x${string}`, bigint],
        >[],
    >
  • toIsModuleInstalledReads: (
        account: ModularSmartAccount,
        __namedParameters: ModuleMeta,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [
                        { name: "moduleTypeId"; type: "uint256" },
                        { name: "module"; type: "address" },
                        { name: "additionalContext"; type: "bytes" },
                    ];
                    name: "isModuleInstalled";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "isModuleInstalled",
            [bigint, `0x${string}`, `0x${string}`],
        >[],
    >
  • toSupportsExecutionModeReads: (
        account: ModularSmartAccount,
        __namedParameters: ExecutionMode<CallType>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [{ name: "encodedMode"; type: "bytes32" }];
                    name: "supportsExecutionMode";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "supportsExecutionMode",
            [`0x${string}`],
        >[],
    >
  • toSupportsModuleReads: <
        TSmartAccount extends
            | undefined
            | object & Assign_<
                SmartAccountImplementation<Abi, EntryPointVersion, object>,
                {
                    address: `0x${string}`;
                    getNonce: (parameters?: { key?: bigint }) => Promise<bigint>;
                    isDeployed: () => Promise<boolean>;
                    type: "smart";
                },
            > & {
                address: `0x${string}`;
                getNonce: (parameters?: { key?: bigint }) => Promise<bigint>;
                isDeployed: () => Promise<boolean>;
                type: "smart";
            },
    >(
        account: ModularSmartAccount,
        __namedParameters: SupportsModuleParameters<TSmartAccount>,
    ) => Promise<
        ReadContractParameters<
            readonly [
                {
                    inputs: readonly [{ name: "moduleTypeId"; type: "uint256" }];
                    name: "supportsModule";
                    outputs: readonly [{ type: "bool" }];
                    stateMutability: "view";
                    type: "function";
                },
            ],
            "supportsModule",
            [bigint],
        >[],
    >