"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BadgerRegistry__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'string',
                name: 'key',
                type: 'string',
            },
        ],
        name: 'AddKey',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
        ],
        name: 'AddVersion',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'author',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'enum BadgerRegistry.VaultStatus',
                name: 'status',
                type: 'uint8',
            },
        ],
        name: 'DemoteVault',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'author',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
        ],
        name: 'NewVault',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'author',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'enum BadgerRegistry.VaultStatus',
                name: 'status',
                type: 'uint8',
            },
        ],
        name: 'PromoteVault',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'author',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
        ],
        name: 'RemoveVault',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'string',
                name: 'key',
                type: 'string',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'at',
                type: 'address',
            },
        ],
        name: 'Set',
        type: 'event',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
        ],
        name: 'add',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
        ],
        name: 'addVersions',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        name: 'addresses',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
            {
                internalType: 'enum BadgerRegistry.VaultStatus',
                name: 'status',
                type: 'uint8',
            },
        ],
        name: 'demote',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'devGovernance',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'key',
                type: 'string',
            },
        ],
        name: 'get',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'enum BadgerRegistry.VaultStatus',
                name: 'status',
                type: 'uint8',
            },
        ],
        name: 'getFilteredProductionVaults',
        outputs: [
            {
                internalType: 'address[]',
                name: '',
                type: 'address[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getProductionVaults',
        outputs: [
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'version',
                        type: 'string',
                    },
                    {
                        internalType: 'enum BadgerRegistry.VaultStatus',
                        name: 'status',
                        type: 'uint8',
                    },
                    {
                        internalType: 'address[]',
                        name: 'list',
                        type: 'address[]',
                    },
                ],
                internalType: 'struct BadgerRegistry.VaultData[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'author',
                type: 'address',
            },
        ],
        name: 'getVaults',
        outputs: [
            {
                internalType: 'address[]',
                name: '',
                type: 'address[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'governance',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newGovernance',
                type: 'address',
            },
        ],
        name: 'initialize',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        name: 'keys',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
            {
                internalType: 'enum BadgerRegistry.VaultStatus',
                name: 'status',
                type: 'uint8',
            },
        ],
        name: 'promote',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'version',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'vault',
                type: 'address',
            },
        ],
        name: 'remove',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'key',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'at',
                type: 'address',
            },
        ],
        name: 'set',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newDev',
                type: 'address',
            },
        ],
        name: 'setDev',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '_newGov',
                type: 'address',
            },
        ],
        name: 'setGovernance',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        name: 'versions',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
];
class BadgerRegistry__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.BadgerRegistry__factory = BadgerRegistry__factory;
BadgerRegistry__factory.abi = _abi;
//# sourceMappingURL=BadgerRegistry__factory.js.map