"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StandardRewards__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: 'contract IBancorNetwork',
                name: 'initNetwork',
                type: 'address',
            },
            {
                internalType: 'contract INetworkSettings',
                name: 'initNetworkSettings',
                type: 'address',
            },
            {
                internalType: 'contract ITokenGovernance',
                name: 'initBNTGovernance',
                type: 'address',
            },
            {
                internalType: 'contract IERC20',
                name: 'initVBNT',
                type: 'address',
            },
            {
                internalType: 'contract IBNTPool',
                name: 'initBNTPool',
                type: 'address',
            },
            {
                internalType: 'contract IExternalRewardsVault',
                name: 'initExternalRewardsVault',
                type: 'address',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        inputs: [],
        name: 'AccessDenied',
        type: 'error',
    },
    {
        inputs: [],
        name: 'AlreadyExists',
        type: 'error',
    },
    {
        inputs: [],
        name: 'AlreadyInitialized',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ArrayNotUnique',
        type: 'error',
    },
    {
        inputs: [],
        name: 'DoesNotExist',
        type: 'error',
    },
    {
        inputs: [],
        name: 'InsufficientFunds',
        type: 'error',
    },
    {
        inputs: [],
        name: 'InvalidAddress',
        type: 'error',
    },
    {
        inputs: [],
        name: 'InvalidParam',
        type: 'error',
    },
    {
        inputs: [],
        name: 'NativeTokenAmountMismatch',
        type: 'error',
    },
    {
        inputs: [],
        name: 'NotWhitelisted',
        type: 'error',
    },
    {
        inputs: [],
        name: 'PermitUnsupported',
        type: 'error',
    },
    {
        inputs: [],
        name: 'PoolMismatch',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ProgramDisabled',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ProgramInactive',
        type: 'error',
    },
    {
        inputs: [],
        name: 'RewardsTokenMismatch',
        type: 'error',
    },
    {
        inputs: [],
        name: 'RewardsTooHigh',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ZeroValue',
        type: 'error',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'rewardsToken',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'totalRewards',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'startTime',
                type: 'uint32',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'endTime',
                type: 'uint32',
            },
        ],
        name: 'ProgramCreated',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'bool',
                name: 'status',
                type: 'bool',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'remainingRewards',
                type: 'uint256',
            },
        ],
        name: 'ProgramEnabled',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'endTime',
                type: 'uint32',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'remainingRewards',
                type: 'uint256',
            },
        ],
        name: 'ProgramTerminated',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'poolTokenAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'prevStake',
                type: 'uint256',
            },
        ],
        name: 'ProviderJoined',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'poolTokenAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'remainingStake',
                type: 'uint256',
            },
        ],
        name: 'ProviderLeft',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'RewardsClaimed',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'uint256',
                name: 'programId',
                type: 'uint256',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'RewardsStaked',
        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',
    },
    {
        inputs: [],
        name: 'DEFAULT_ADMIN_ROLE',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256[]',
                name: 'ids',
                type: 'uint256[]',
            },
        ],
        name: 'claimRewards',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
            {
                internalType: 'contract Token',
                name: 'rewardsToken',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'totalRewards',
                type: 'uint256',
            },
            {
                internalType: 'uint32',
                name: 'startTime',
                type: 'uint32',
            },
            {
                internalType: 'uint32',
                name: 'endTime',
                type: 'uint32',
            },
        ],
        name: 'createProgram',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'tokenAmount',
                type: 'uint256',
            },
        ],
        name: 'depositAndJoin',
        outputs: [],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'tokenAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'deadline',
                type: 'uint256',
            },
            {
                internalType: 'uint8',
                name: 'v',
                type: 'uint8',
            },
            {
                internalType: 'bytes32',
                name: 'r',
                type: 'bytes32',
            },
            {
                internalType: 'bytes32',
                name: 's',
                type: 'bytes32',
            },
        ],
        name: 'depositAndJoinPermitted',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'bool',
                name: 'status',
                type: 'bool',
            },
        ],
        name: 'enableProgram',
        outputs: [],
        stateMutability: 'nonpayable',
        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: 'uint256',
                name: 'index',
                type: 'uint256',
            },
        ],
        name: 'getRoleMember',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'role',
                type: 'bytes32',
            },
        ],
        name: 'getRoleMemberCount',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        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: [],
        name: 'initialize',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'isProgramActive',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'isProgramEnabled',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'poolTokenAmount',
                type: 'uint256',
            },
        ],
        name: 'join',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'poolTokenAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'deadline',
                type: 'uint256',
            },
            {
                internalType: 'uint8',
                name: 'v',
                type: 'uint8',
            },
            {
                internalType: 'bytes32',
                name: 'r',
                type: 'bytes32',
            },
            {
                internalType: 'bytes32',
                name: 's',
                type: 'bytes32',
            },
        ],
        name: 'joinPermitted',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Token',
                name: 'pool',
                type: 'address',
            },
        ],
        name: 'latestProgramId',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'poolTokenAmount',
                type: 'uint256',
            },
        ],
        name: 'leave',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                internalType: 'uint256[]',
                name: 'ids',
                type: 'uint256[]',
            },
        ],
        name: 'pendingRewards',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'postUpgrade',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'programIds',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'programRewards',
        outputs: [
            {
                components: [
                    {
                        internalType: 'uint32',
                        name: 'lastUpdateTime',
                        type: 'uint32',
                    },
                    {
                        internalType: 'uint256',
                        name: 'rewardPerToken',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct Rewards',
                name: '',
                type: 'tuple',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'programStake',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256[]',
                name: 'ids',
                type: 'uint256[]',
            },
        ],
        name: 'programs',
        outputs: [
            {
                components: [
                    {
                        internalType: 'uint256',
                        name: 'id',
                        type: 'uint256',
                    },
                    {
                        internalType: 'contract Token',
                        name: 'pool',
                        type: 'address',
                    },
                    {
                        internalType: 'contract IPoolToken',
                        name: 'poolToken',
                        type: 'address',
                    },
                    {
                        internalType: 'contract Token',
                        name: 'rewardsToken',
                        type: 'address',
                    },
                    {
                        internalType: 'bool',
                        name: 'isEnabled',
                        type: 'bool',
                    },
                    {
                        internalType: 'uint32',
                        name: 'startTime',
                        type: 'uint32',
                    },
                    {
                        internalType: 'uint32',
                        name: 'endTime',
                        type: 'uint32',
                    },
                    {
                        internalType: 'uint256',
                        name: 'rewardRate',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'remainingRewards',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct ProgramData[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
        ],
        name: 'providerProgramIds',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'providerRewards',
        outputs: [
            {
                components: [
                    {
                        internalType: 'uint256',
                        name: 'rewardPerTokenPaid',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'pendingRewards',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'reserved0',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'stakedAmount',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct ProviderRewards',
                name: '',
                type: 'tuple',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'provider',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'providerStake',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        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: 'roleAdmin',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'pure',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256[]',
                name: 'ids',
                type: 'uint256[]',
            },
        ],
        name: 'stakeRewards',
        outputs: [
            {
                components: [
                    {
                        internalType: 'uint256',
                        name: 'stakedRewardAmount',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'poolTokenAmount',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct StakeAmounts',
                name: '',
                type: 'tuple',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes4',
                name: 'interfaceId',
                type: 'bytes4',
            },
        ],
        name: 'supportsInterface',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'id',
                type: 'uint256',
            },
        ],
        name: 'terminateProgram',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address[]',
                name: 'providers',
                type: 'address[]',
            },
            {
                internalType: 'uint256[]',
                name: 'amounts',
                type: 'uint256[]',
            },
        ],
        name: 'transferProviderVBNT',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'version',
        outputs: [
            {
                internalType: 'uint16',
                name: '',
                type: 'uint16',
            },
        ],
        stateMutability: 'pure',
        type: 'function',
    },
    {
        stateMutability: 'payable',
        type: 'receive',
    },
];
class StandardRewards__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.StandardRewards__factory = StandardRewards__factory;
StandardRewards__factory.abi = _abi;
//# sourceMappingURL=StandardRewards__factory.js.map