UNPKG

@soma-finance/core-contracts

Version:

SOMA Finance core contracts

321 lines 7.75 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ITokenRewards__factory = void 0; const ethers_1 = require("ethers"); const _erc165InterfaceId = "0x74d4ab24"; const _erc1820InterfaceId = "0xae5fd3702da45a6d03df1ed87ee9c904ddd821359d6e5443a54d1b1386846db9"; const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, { indexed: false, internalType: "address", name: "caller", type: "address", }, ], name: "Claimed", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, { indexed: false, internalType: "address", name: "caller", type: "address", }, ], name: "RewardsDeposited", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, { indexed: false, internalType: "address", name: "seizeTo", type: "address", }, { indexed: false, internalType: "address", name: "caller", type: "address", }, ], name: "Seized", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "startTime", type: "uint256", }, { indexed: false, internalType: "uint256", name: "endTime", type: "uint256", }, { indexed: false, internalType: "address", name: "caller", type: "address", }, ], name: "UpdatedTimestamps", type: "event", }, { inputs: [], name: "GLOBAL_ADMIN_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "GLOBAL_SEIZE_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "LOCAL_ADMIN_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "LOCAL_SEIZE_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32[]", name: "_proof", type: "bytes32[]", }, { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "claim", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "address", name: "user", type: "address", }, ], name: "claimableRewards", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "claimedAmount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "duration", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "endTime", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "rewardToken", outputs: [ { internalType: "contract IERC20", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "rewardTokenBalance", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "seize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "startTime", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_startTime", type: "uint256", }, { internalType: "uint256", name: "_endTime", type: "uint256", }, ], name: "updateTime", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class ITokenRewards__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ITokenRewards__factory = ITokenRewards__factory; ITokenRewards__factory.erc165InterfaceId = _erc165InterfaceId; ITokenRewards__factory.erc1820InterfaceId = _erc1820InterfaceId; ITokenRewards__factory.abi = _abi; //# sourceMappingURL=ITokenRewards__factory.js.map