"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MakerGovernance__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        constant: true,
        inputs: [],
        name: 'IOU',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'who',
                type: 'address',
            },
        ],
        name: 'getUserRoles',
        outputs: [
            {
                name: '',
                type: 'bytes32',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'setOwner',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [],
        name: 'GOV',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'code',
                type: 'address',
            },
            {
                name: 'sig',
                type: 'bytes4',
            },
        ],
        name: 'getCapabilityRoles',
        outputs: [
            {
                name: '',
                type: 'bytes32',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'code',
                type: 'address',
            },
            {
                name: 'sig',
                type: 'bytes4',
            },
        ],
        name: 'isCapabilityPublic',
        outputs: [
            {
                name: '',
                type: 'bool',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [],
        name: 'MAX_YAYS',
        outputs: [
            {
                name: '',
                type: 'uint256',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'whom',
                type: 'address',
            },
        ],
        name: 'lift',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'yays',
                type: 'address[]',
            },
        ],
        name: 'etch',
        outputs: [
            {
                name: 'slate',
                type: 'bytes32',
            },
        ],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        name: 'approvals',
        outputs: [
            {
                name: '',
                type: 'uint256',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'who',
                type: 'address',
            },
            {
                name: 'role',
                type: 'uint8',
            },
            {
                name: 'enabled',
                type: 'bool',
            },
        ],
        name: 'setUserRole',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'authority_',
                type: 'address',
            },
        ],
        name: 'setAuthority',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'role',
                type: 'uint8',
            },
            {
                name: 'code',
                type: 'address',
            },
            {
                name: 'sig',
                type: 'bytes4',
            },
            {
                name: 'enabled',
                type: 'bool',
            },
        ],
        name: 'setRoleCapability',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [],
        name: 'owner',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'who',
                type: 'address',
            },
            {
                name: 'role',
                type: 'uint8',
            },
        ],
        name: 'hasUserRole',
        outputs: [
            {
                name: '',
                type: 'bool',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'slate',
                type: 'bytes32',
            },
        ],
        name: 'vote',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'caller',
                type: 'address',
            },
            {
                name: 'code',
                type: 'address',
            },
            {
                name: 'sig',
                type: 'bytes4',
            },
        ],
        name: 'canCall',
        outputs: [
            {
                name: '',
                type: 'bool',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [],
        name: 'authority',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: '',
                type: 'bytes32',
            },
            {
                name: '',
                type: 'uint256',
            },
        ],
        name: 'slates',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'code',
                type: 'address',
            },
            {
                name: 'sig',
                type: 'bytes4',
            },
            {
                name: 'enabled',
                type: 'bool',
            },
        ],
        name: 'setPublicCapability',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'who',
                type: 'address',
            },
            {
                name: 'enabled',
                type: 'bool',
            },
        ],
        name: 'setRootUser',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        name: 'votes',
        outputs: [
            {
                name: '',
                type: 'bytes32',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'wad',
                type: 'uint256',
            },
        ],
        name: 'free',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'wad',
                type: 'uint256',
            },
        ],
        name: 'lock',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                name: 'yays',
                type: 'address[]',
            },
        ],
        name: 'vote',
        outputs: [
            {
                name: '',
                type: 'bytes32',
            },
        ],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: 'who',
                type: 'address',
            },
        ],
        name: 'isUserRoot',
        outputs: [
            {
                name: '',
                type: 'bool',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        name: 'deposits',
        outputs: [
            {
                name: '',
                type: 'uint256',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: true,
        inputs: [],
        name: 'hat',
        outputs: [
            {
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                name: 'GOV',
                type: 'address',
            },
            {
                name: 'IOU',
                type: 'address',
            },
            {
                name: 'MAX_YAYS',
                type: 'uint256',
            },
        ],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                name: 'slate',
                type: 'bytes32',
            },
        ],
        name: 'Etch',
        type: 'event',
    },
    {
        anonymous: true,
        inputs: [
            {
                indexed: true,
                name: 'sig',
                type: 'bytes4',
            },
            {
                indexed: true,
                name: 'guy',
                type: 'address',
            },
            {
                indexed: true,
                name: 'foo',
                type: 'bytes32',
            },
            {
                indexed: true,
                name: 'bar',
                type: 'bytes32',
            },
            {
                indexed: false,
                name: 'wad',
                type: 'uint256',
            },
            {
                indexed: false,
                name: 'fax',
                type: 'bytes',
            },
        ],
        name: 'LogNote',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                name: 'authority',
                type: 'address',
            },
        ],
        name: 'LogSetAuthority',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                name: 'owner',
                type: 'address',
            },
        ],
        name: 'LogSetOwner',
        type: 'event',
    },
];
class MakerGovernance__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.MakerGovernance__factory = MakerGovernance__factory;
MakerGovernance__factory.abi = _abi;
//# sourceMappingURL=MakerGovernance__factory.js.map