@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
585 lines • 14.1 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 = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "baseline",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "totalRate",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "mask",
type: "uint256",
},
],
name: "BaselineUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "by",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "paused",
type: "bool",
},
],
name: "EmergencyPaused",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "minter",
type: "address",
},
],
name: "RewardMinterSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "pool",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "mask",
type: "uint256",
},
],
name: "RewardPoolAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "pool",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "mask",
type: "uint256",
},
],
name: "RewardPoolRemoved",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "fromPool",
type: "address",
},
],
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: "addRewardPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint256",
name: "allocated",
type: "uint256",
},
{
internalType: "uint32",
name: "since",
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: "claimed",
type: "uint256",
},
{
internalType: "uint256",
name: "extra",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address",
},
{
internalType: "uint256",
name: "includeMask",
type: "uint256",
},
],
name: "claimRewardTo",
outputs: [
{
internalType: "uint256",
name: "claimed",
type: "uint256",
},
{
internalType: "uint256",
name: "extra",
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",
},
],
name: "claimableReward",
outputs: [
{
internalType: "uint256",
name: "claimable",
type: "uint256",
},
{
internalType: "uint256",
name: "extra",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "holder",
type: "address",
},
{
internalType: "uint256",
name: "includeMask",
type: "uint256",
},
],
name: "claimableRewardFor",
outputs: [
{
internalType: "uint256",
name: "claimable",
type: "uint256",
},
{
internalType: "uint256",
name: "extra",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getAccessController",
outputs: [
{
internalType: "contract IMarketAccessController",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "pool",
type: "address",
},
],
name: "getPoolMask",
outputs: [
{
internalType: "uint256",
name: "",
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: [
{
internalType: "uint256",
name: "allMask",
type: "uint256",
},
],
name: "getPoolsByMask",
outputs: [
{
internalType: "address[]",
name: "pools",
type: "address[]",
},
],
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: "isConfigAdmin",
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: "isRateAdmin",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IManagedRewardPool",
name: "pool",
type: "address",
},
],
name: "removeRewardPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IManagedRewardPool[]",
name: "pools",
type: "address[]",
},
{
internalType: "uint16[]",
name: "pcts",
type: "uint16[]",
},
{
internalType: "uint256",
name: "baseline",
type: "uint256",
},
],
name: "setBaselinePercentagesAndRate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "includeMask",
type: "uint256",
},
],
name: "setClaimablePools",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "accounts",
type: "address[]",
},
{
internalType: "uint256",
name: "includeMask",
type: "uint256",
},
],
name: "setClaimablePoolsFor",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "paused",
type: "bool",
},
],
name: "setPaused",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IRewardMinter",
name: "minter",
type: "address",
},
],
name: "setRewardMinter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "baseline",
type: "uint256",
},
],
name: "updateBaseline",
outputs: [
{
internalType: "uint256",
name: "totalRate",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=BasicRewardControllerFactory.js.map