UNPKG

@collabland/staking-contracts

Version:
352 lines (351 loc) 6.88 kB
[ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "frameNFTId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "voterContract", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "voterTokenId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "voterWalletAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "frameNFTAddress", "type": "address" } ], "name": "FrameNFTMinted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "frameNFTContract", "outputs": [ { "internalType": "contract IFrameNFT", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isStakingEnabledForTokenContractAddress", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isUnstakingEnabledForTokenContractAddress", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "staker", "type": "address" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "numStakedTokens", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "onERC721Received", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "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": "address", "name": "add", "type": "address" } ], "name": "setFrameNFTContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "setStakingEnabledForTokenContractAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "enabled", "type": "bool" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "setUnstakingEnabledForTokenContractAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "shouldMintFrameWhenUnstakingForToken", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "tokenContractAddresses", "type": "address[]" }, { "internalType": "uint256[][]", "name": "tokenIdsForEachContract", "type": "uint256[][]" } ], "name": "stakeTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "enable", "type": "bool" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "toggleMintFrameEnabledWhenUnstakingToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "staker", "type": "address" }, { "internalType": "uint256", "name": "index", "type": "uint256" }, { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "tokenOfStakerByIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "tokenContractAddresses", "type": "address[]" }, { "internalType": "uint256[][]", "name": "tokenIdsForEachContract", "type": "uint256[][]" } ], "name": "unstakeTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]