UNPKG

test-contracts-sovryn

Version:

Smart contracts for the Sovryn protocol and external integrations.

633 lines (632 loc) 15.8 kB
[ { "inputs": [ { "internalType": "address", "name": "_SOV", "type": "address" }, { "internalType": "address", "name": "_vestingRegistry", "type": "address" }, { "internalType": "uint256", "name": "_cliff", "type": "uint256" }, { "internalType": "uint256", "name": "_duration", "type": "uint256" }, { "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": "_newLockedSOV", "type": "address" } ], "name": "MigrationStarted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_initiator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_vestingRegistry", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_cliff", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_duration", "type": "uint256" } ], "name": "RegistryCliffAndDurationUpdated", "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": "TokenStaked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_initiator", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "UserTransfered", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_initiator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_userAddress", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_vesting", "type": "address" } ], "name": "VestingCreated", "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": "MAX_BASIS_POINT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "MAX_DURATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "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": true, "inputs": [ { "internalType": "address", "name": "_addr", "type": "address" } ], "name": "adminStatus", "outputs": [ { "internalType": "bool", "name": "_status", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_vestingRegistry", "type": "address" }, { "internalType": "uint256", "name": "_cliff", "type": "uint256" }, { "internalType": "uint256", "name": "_duration", "type": "uint256" } ], "name": "changeRegistryCliffAndDuration", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "cliff", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "createVesting", "outputs": [ { "internalType": "address", "name": "_vestingAddress", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "createVestingAndStake", "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": [], "name": "duration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "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": true, "inputs": [], "name": "migration", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "newLockedSOV", "outputs": [ { "internalType": "contract ILockedSOV", "name": "", "type": "address" } ], "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": [], "name": "stakeTokens", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_newLockedSOV", "type": "address" } ], "name": "startMigration", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "vestingRegistry", "outputs": [ { "internalType": "contract VestingRegistry", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_receiverAddress", "type": "address" } ], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_receiverAddress", "type": "address" } ], "name": "withdrawAndStakeTokens", "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" } ]