"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
exports.EthereumDIDRegistry__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "name",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "value",
                type: "bytes"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "validTo",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "previousChange",
                type: "uint256"
            },
        ],
        name: "DIDAttributeChanged",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "address",
                name: "delegate",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "validTo",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "previousChange",
                type: "uint256"
            },
        ],
        name: "DIDDelegateChanged",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "owner",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "previousChange",
                type: "uint256"
            },
        ],
        name: "DIDOwnerChanged",
        type: "event"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "delegate",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "validity",
                type: "uint256"
            },
        ],
        name: "addDelegate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "sigV",
                type: "uint8"
            },
            {
                internalType: "bytes32",
                name: "sigR",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "sigS",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "delegate",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "validity",
                type: "uint256"
            },
        ],
        name: "addDelegateSigned",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "address",
                name: "newOwner",
                type: "address"
            },
        ],
        name: "changeOwner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "sigV",
                type: "uint8"
            },
            {
                internalType: "bytes32",
                name: "sigR",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "sigS",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "newOwner",
                type: "address"
            },
        ],
        name: "changeOwnerSigned",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "changed",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "delegates",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
        ],
        name: "identityOwner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "nonce",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "owners",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "name",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "value",
                type: "bytes"
            },
        ],
        name: "revokeAttribute",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "sigV",
                type: "uint8"
            },
            {
                internalType: "bytes32",
                name: "sigR",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "sigS",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "name",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "value",
                type: "bytes"
            },
        ],
        name: "revokeAttributeSigned",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "delegate",
                type: "address"
            },
        ],
        name: "revokeDelegate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "sigV",
                type: "uint8"
            },
            {
                internalType: "bytes32",
                name: "sigR",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "sigS",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "delegate",
                type: "address"
            },
        ],
        name: "revokeDelegateSigned",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "name",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "value",
                type: "bytes"
            },
            {
                internalType: "uint256",
                name: "validity",
                type: "uint256"
            },
        ],
        name: "setAttribute",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "uint8",
                name: "sigV",
                type: "uint8"
            },
            {
                internalType: "bytes32",
                name: "sigR",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "sigS",
                type: "bytes32"
            },
            {
                internalType: "bytes32",
                name: "name",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "value",
                type: "bytes"
            },
            {
                internalType: "uint256",
                name: "validity",
                type: "uint256"
            },
        ],
        name: "setAttributeSigned",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "identity",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "delegateType",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "delegate",
                type: "address"
            },
        ],
        name: "validDelegate",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = " ";
var EthereumDIDRegistry__factory = /** @class */ (function (_super) {
    __extends(EthereumDIDRegistry__factory, _super);
    function EthereumDIDRegistry__factory(signer) {
        return _super.call(this, _abi, _bytecode, signer) || this;
    }
    EthereumDIDRegistry__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    EthereumDIDRegistry__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    EthereumDIDRegistry__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    EthereumDIDRegistry__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    EthereumDIDRegistry__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    EthereumDIDRegistry__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    EthereumDIDRegistry__factory.bytecode = _bytecode;
    EthereumDIDRegistry__factory.abi = _abi;
    return EthereumDIDRegistry__factory;
}(ethers_1.ContractFactory));
exports.EthereumDIDRegistry__factory = EthereumDIDRegistry__factory;
