"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SP1Helios__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "params",
                type: "tuple",
                internalType: "struct SP1Helios.InitParams",
                components: [
                    {
                        name: "executionStateRoot",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "genesisTime",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "head",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "header",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "heliosProgramVkey",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "secondsPerSlot",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "slotsPerEpoch",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "slotsPerPeriod",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "syncCommitteeHash",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "verifier",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "vkeyUpdater",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "updaters",
                        type: "address[]",
                        internalType: "address[]",
                    },
                ],
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "DEFAULT_ADMIN_ROLE",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "GENESIS_TIME",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "MAX_SLOT_AGE",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SECONDS_PER_SLOT",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SLOTS_PER_EPOCH",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SLOTS_PER_PERIOD",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "STATE_UPDATER_ROLE",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "VKEY_UPDATER_ROLE",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "computeStorageKey",
        inputs: [
            {
                name: "beaconSlot",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "contractAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "storageSlot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "pure",
    },
    {
        type: "function",
        name: "executionStateRoots",
        inputs: [
            {
                name: "beaconSlot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "executionStateRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getCurrentEpoch",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getRoleAdmin",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getRoleMember",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "index",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getRoleMemberCount",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getStorageSlot",
        inputs: [
            {
                name: "beaconSlot",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "contractAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "storageSlot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getSyncCommitteePeriod",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "grantRole",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "hasRole",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "head",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "headTimestamp",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "headers",
        inputs: [
            {
                name: "beaconSlot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "beaconHeaderRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "heliosProgramVkey",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "renounceRole",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "callerConfirmation",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "revokeRole",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "slotTimestamp",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "storageValues",
        inputs: [
            {
                name: "computedStorageKey",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "storageValue",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "supportsInterface",
        inputs: [
            {
                name: "interfaceId",
                type: "bytes4",
                internalType: "bytes4",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "syncCommittees",
        inputs: [
            {
                name: "syncCommitteePeriod",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "syncCommitteeHash",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "update",
        inputs: [
            {
                name: "proof",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "publicValues",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "updateHeliosProgramVkey",
        inputs: [
            {
                name: "newHeliosProgramVkey",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "verifier",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "HeadUpdate",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "root",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "HeliosProgramVkeyUpdated",
        inputs: [
            {
                name: "oldHeliosProgramVkey",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "newHeliosProgramVkey",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RoleAdminChanged",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "previousAdminRole",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "newAdminRole",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RoleGranted",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "account",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "sender",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RoleRevoked",
        inputs: [
            {
                name: "role",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "account",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "sender",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "StorageSlotVerified",
        inputs: [
            {
                name: "head",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "key",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
            {
                name: "value",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "contractAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SyncCommitteeUpdate",
        inputs: [
            {
                name: "period",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "root",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "AccessControlBadConfirmation",
        inputs: [],
    },
    {
        type: "error",
        name: "AccessControlUnauthorizedAccount",
        inputs: [
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
            {
                name: "neededRole",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
    },
    {
        type: "error",
        name: "ExecutionStateRootMismatch",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "NewHeaderMismatch",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "NonIncreasingHead",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "PreviousHeadTooOld",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "PreviousHeaderMismatch",
        inputs: [
            {
                name: "given",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "expected",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
    },
    {
        type: "error",
        name: "PreviousHeaderNotSet",
        inputs: [
            {
                name: "slot",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "SyncCommitteeAlreadySet",
        inputs: [
            {
                name: "period",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "SyncCommitteeStartMismatch",
        inputs: [
            {
                name: "given",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "expected",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
    },
    {
        type: "error",
        name: "VkeyNotChanged",
        inputs: [
            {
                name: "vkey",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
    },
];
class SP1Helios__factory {
    static abi = _abi;
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.SP1Helios__factory = SP1Helios__factory;
//# sourceMappingURL=SP1Helios__factory.js.map