@augumented-finance/protocol-v1
Version:
Augmented Protocol smart contracts
525 lines • 12.6 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasicRewardControllerFactory = void 0;
const ethers_1 = require("ethers");
class BasicRewardControllerFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.BasicRewardControllerFactory = BasicRewardControllerFactory;
const _abi = [
{
inputs: [
{
internalType: "contract IMarketAccessController",
name: "accessController",
type: "address",
},
{
internalType: "contract IRewardMinter",
name: "rewardMinter",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "RewardsAllocated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "RewardsClaimed",
type: "event",
},
{
inputs: [
{
internalType: "contract IManagedRewardPool",
name: "pool",
type: "address",
},
],
name: "admin_addRewardPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "pool",
type: "address",
},
{
internalType: "address",
name: "provider",
type: "address",
},
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "admin_addRewardProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IManagedRewardPool",
name: "pool",
type: "address",
},
],
name: "admin_removeRewardPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "pool",
type: "address",
},
{
internalType: "address",
name: "provider",
type: "address",
},
],
name: "admin_removeRewardProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IRewardMinter",
name: "minter",
type: "address",
},
],
name: "admin_setRewardMinter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint256",
name: "allocated",
type: "uint256",
},
{
internalType: "uint32",
name: "sinceBlock",
type: "uint32",
},
{
internalType: "enum AllocationMode",
name: "mode",
type: "uint8",
},
],
name: "allocatedByPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "claimReward",
outputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address",
},
{
internalType: "uint256",
name: "mask",
type: "uint256",
},
],
name: "claimRewardAndTransferTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint256",
name: "mask",
type: "uint256",
},
],
name: "claimRewardFor",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
],
name: "claimablePools",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint32",
name: "atBlock",
type: "uint32",
},
],
name: "claimableReward",
outputs: [
{
internalType: "uint256",
name: "claimable",
type: "uint256",
},
{
internalType: "uint256",
name: "delayed",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint256",
name: "mask",
type: "uint256",
},
{
internalType: "uint32",
name: "atBlock",
type: "uint32",
},
],
name: "claimableRewardFor",
outputs: [
{
internalType: "uint256",
name: "claimable",
type: "uint256",
},
{
internalType: "uint256",
name: "delayed",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPools",
outputs: [
{
internalType: "contract IManagedRewardPool[]",
name: "",
type: "address[]",
},
{
internalType: "uint256",
name: "ignoreMask",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardMinter",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "addr",
type: "address",
},
],
name: "isConfigurator",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "addr",
type: "address",
},
],
name: "isEmergencyAdmin",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isPaused",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "addr",
type: "address",
},
],
name: "isRateController",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "paused",
type: "bool",
},
],
name: "setPaused",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "baseline",
type: "uint256",
},
],
name: "updateBaseline",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=BasicRewardControllerFactory.js.map