@collabland/staking-contracts
Version:
Staking contracts supported by Collab.Land
203 lines (202 loc) • 5.23 kB
JSON
[
{"inputs": [], "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": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "Stake",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "Unstake",
"type": "event"
},
{
"inputs": [
{"internalType": "address", "name": "_nftAddress", "type": "address"},
{"internalType": "uint256", "name": "_lockTime", "type": "uint256"}
],
"name": "addPool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{"internalType": "uint256[]", "name": "_tokenIds", "type": "uint256[]"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "batchStakeNFT",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{"internalType": "uint256[]", "name": "_tokenIds", "type": "uint256[]"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "batchUnstakeNFT",
"outputs": [],
"stateMutability": "nonpayable",
"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": [
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "poolInfo",
"outputs": [
{"internalType": "contract IERC721", "name": "", "type": "address"},
{"internalType": "uint256", "name": "", "type": "uint256"}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{"internalType": "uint256", "name": "_tokenId", "type": "uint256"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "stakeNFT",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{"internalType": "uint256", "name": "_tokenId", "type": "uint256"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "stakedNftInfo",
"outputs": [
{"internalType": "uint256", "name": "", "type": "uint256"},
{"internalType": "uint256", "name": "", "type": "uint256"}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{"internalType": "address", "name": "_owner", "type": "address"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "stakedNfts",
"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": "uint256", "name": "_tokenId", "type": "uint256"},
{"internalType": "uint256", "name": "_poolId", "type": "uint256"}
],
"name": "unstakeNFT",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{"internalType": "uint256", "name": "_poolId", "type": "uint256"},
{"internalType": "uint256", "name": "_lockTime", "type": "uint256"}
],
"name": "updatePoolLocktime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]