"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Main__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'previousAdmin',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'newAdmin',
                type: 'address',
            },
        ],
        name: 'AdminChanged',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IAssetRegistry',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IAssetRegistry',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'AssetRegistrySet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IBackingManager',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IBackingManager',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'BackingManagerSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IBasketHandler',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IBasketHandler',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'BasketHandlerSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'beacon',
                type: 'address',
            },
        ],
        name: 'BeaconUpgraded',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IBroker',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IBroker',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'BrokerSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IDistributor',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IDistributor',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'DistributorSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IFurnace',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IFurnace',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'FurnaceSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint8',
                name: 'version',
                type: 'uint8',
            },
        ],
        name: 'Initialized',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'uint48',
                name: 'oldDuration',
                type: 'uint48',
            },
            {
                indexed: true,
                internalType: 'uint48',
                name: 'newDuration',
                type: 'uint48',
            },
        ],
        name: 'LongFreezeDurationSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [],
        name: 'MainInitialized',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bool',
                name: 'oldVal',
                type: 'bool',
            },
            {
                indexed: true,
                internalType: 'bool',
                name: 'newVal',
                type: 'bool',
            },
        ],
        name: 'PausedSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IRevenueTrader',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IRevenueTrader',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'RSRTraderSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IRToken',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IRToken',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'RTokenSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IRevenueTrader',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IRevenueTrader',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'RTokenTraderSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                indexed: true,
                internalType: 'bytes32',
                name: 'previousAdminRole',
                type: 'bytes32',
            },
            {
                indexed: true,
                internalType: 'bytes32',
                name: 'newAdminRole',
                type: 'bytes32',
            },
        ],
        name: 'RoleAdminChanged',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
        ],
        name: 'RoleGranted',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
        ],
        name: 'RoleRevoked',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'uint48',
                name: 'oldDuration',
                type: 'uint48',
            },
            {
                indexed: true,
                internalType: 'uint48',
                name: 'newDuration',
                type: 'uint48',
            },
        ],
        name: 'ShortFreezeDurationSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract IStRSR',
                name: 'oldVal',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'contract IStRSR',
                name: 'newVal',
                type: 'address',
            },
        ],
        name: 'StRSRSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'uint48',
                name: 'oldVal',
                type: 'uint48',
            },
            {
                indexed: true,
                internalType: 'uint48',
                name: 'newVal',
                type: 'uint48',
            },
        ],
        name: 'UnfreezeAtSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'implementation',
                type: 'address',
            },
        ],
        name: 'Upgraded',
        type: 'event',
    },
    {
        inputs: [],
        name: 'DEFAULT_ADMIN_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'LONG_FREEZER_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'OWNER_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'PAUSER_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'SHORT_FREEZER_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'assetRegistry',
        outputs: [
            {
                internalType: 'contract IAssetRegistry',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'backingManager',
        outputs: [
            {
                internalType: 'contract IBackingManager',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'basketHandler',
        outputs: [
            {
                internalType: 'contract IBasketHandler',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'broker',
        outputs: [
            {
                internalType: 'contract IBroker',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'distributor',
        outputs: [
            {
                internalType: 'contract IDistributor',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'freezeForever',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'freezeLong',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'freezeShort',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'frozen',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'furnace',
        outputs: [
            {
                internalType: 'contract IFurnace',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
        ],
        name: 'getRoleAdmin',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'grantRole',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'hasRole',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: 'contract IRToken',
                        name: 'rToken',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IStRSR',
                        name: 'stRSR',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IAssetRegistry',
                        name: 'assetRegistry',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IBasketHandler',
                        name: 'basketHandler',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IBackingManager',
                        name: 'backingManager',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IDistributor',
                        name: 'distributor',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IFurnace',
                        name: 'furnace',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IBroker',
                        name: 'broker',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IRevenueTrader',
                        name: 'rsrTrader',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IRevenueTrader',
                        name: 'rTokenTrader',
                        type: 'address',
                    },
                ],
                internalType: 'struct Components',
                name: 'components',
                type: 'tuple',
            },
            {
                internalType: 'contract IERC20',
                name: 'rsr_',
                type: 'address',
            },
            {
                internalType: 'uint48',
                name: 'shortFreeze_',
                type: 'uint48',
            },
            {
                internalType: 'uint48',
                name: 'longFreeze_',
                type: 'uint48',
            },
        ],
        name: 'init',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'longFreeze',
        outputs: [
            {
                internalType: 'uint48',
                name: '',
                type: 'uint48',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: 'longFreezes',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'pause',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'paused',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'pausedOrFrozen',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'poke',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'proxiableUUID',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'rToken',
        outputs: [
            {
                internalType: 'contract IRToken',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'rTokenTrader',
        outputs: [
            {
                internalType: 'contract IRevenueTrader',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'renounceRole',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'revokeRole',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'rsr',
        outputs: [
            {
                internalType: 'contract IERC20',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'rsrTrader',
        outputs: [
            {
                internalType: 'contract IRevenueTrader',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint48',
                name: 'longFreeze_',
                type: 'uint48',
            },
        ],
        name: 'setLongFreeze',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint48',
                name: 'shortFreeze_',
                type: 'uint48',
            },
        ],
        name: 'setShortFreeze',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'shortFreeze',
        outputs: [
            {
                internalType: 'uint48',
                name: '',
                type: 'uint48',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'stRSR',
        outputs: [
            {
                internalType: 'contract IStRSR',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes4',
                name: 'interfaceId',
                type: 'bytes4',
            },
        ],
        name: 'supportsInterface',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'unfreeze',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'unfreezeAt',
        outputs: [
            {
                internalType: 'uint48',
                name: '',
                type: 'uint48',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'unpause',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newImplementation',
                type: 'address',
            },
        ],
        name: 'upgradeTo',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'newImplementation',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'upgradeToAndCall',
        outputs: [],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'version',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'pure',
        type: 'function',
    },
];
class Main__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.Main__factory = Main__factory;
Main__factory.abi = _abi;
//# sourceMappingURL=Main__factory.js.map