test-contracts-sovryn
Version:
Smart contracts for the Sovryn protocol and external integrations.
286 lines (285 loc) • 7.15 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "_SOV",
"type": "address"
},
{
"internalType": "address[]",
"name": "_admins",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_newAdmin",
"type": "address"
}
],
"name": "AdminAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_removedAdmin",
"type": "address"
}
],
"name": "AdminRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_userAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_sovAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_basisPoint",
"type": "uint256"
}
],
"name": "Deposited",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_vesting",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "TokensStaked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_initiator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_userAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_sovAmount",
"type": "uint256"
}
],
"name": "Withdrawn",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "SOV",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_newAdmin",
"type": "address"
}
],
"name": "addAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_userAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "_sovAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_basisPoint",
"type": "uint256"
}
],
"name": "deposit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_userAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "_sovAmount",
"type": "uint256"
}
],
"name": "depositSOV",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_addr",
"type": "address"
}
],
"name": "getLockedBalance",
"outputs": [
{
"internalType": "uint256",
"name": "_balance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_addr",
"type": "address"
}
],
"name": "getUnlockedBalance",
"outputs": [
{
"internalType": "uint256",
"name": "_balance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_adminToRemove",
"type": "address"
}
],
"name": "removeAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_userAddress",
"type": "address"
}
],
"name": "withdrawAndStakeTokensFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]