@thirdweb-dev/contracts-js
Version:
287 lines • 5.67 kB
JSON
[
{
"type": "receive",
"stateMutability": "payable"
},
{
"type": "function",
"name": "addStake",
"inputs": [
{
"name": "unstakeDelaySec",
"type": "uint32",
"internalType": "uint32"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "depositTo",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "deposits",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "deposit",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "staked",
"type": "bool",
"internalType": "bool"
},
{
"name": "stake",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "unstakeDelaySec",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "withdrawTime",
"type": "uint48",
"internalType": "uint48"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getDepositInfo",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "info",
"type": "tuple",
"internalType": "struct IStakeManager.DepositInfo",
"components": [
{
"name": "deposit",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "staked",
"type": "bool",
"internalType": "bool"
},
{
"name": "stake",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "unstakeDelaySec",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "withdrawTime",
"type": "uint48",
"internalType": "uint48"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "unlockStake",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdrawStake",
"inputs": [
{
"name": "withdrawAddress",
"type": "address",
"internalType": "address payable"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdrawTo",
"inputs": [
{
"name": "withdrawAddress",
"type": "address",
"internalType": "address payable"
},
{
"name": "withdrawAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Deposited",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "totalDeposit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeLocked",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "totalStaked",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "unstakeDelaySec",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeUnlocked",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "withdrawTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeWithdrawn",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "withdrawAddress",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Withdrawn",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "withdrawAddress",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
}
]