test-contracts-sovryn
Version:
Smart contracts for the Sovryn protocol and external integrations.
253 lines (252 loc) • 9.45 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "StakingRewardsStorage",
"sourceName": "contracts/governance/StakingRewards/StakingRewardsStorage.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "BASE_RATE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "DIVISOR",
"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": true,
"inputs": [],
"name": "TWO_WEEKS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "claimedBalances",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "deploymentBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxDuration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "staking",
"outputs": [
{
"internalType": "contract IStaking",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "startTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "stopBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "withdrawals",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405260006100176001600160e01b0361006616565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006a565b3390565b6103f1806100796000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637a9262a21161008c5780638f32d59b116100665780638f32d59b1461018b578063934d1fa4146101a7578063d42b779d146101af578063f2fde38b146101d5576100ea565b80637a9262a21461015557806382100e3f1461017b5780638da5cb5b14610183576100ea565b806344bb3b2f116100c857806344bb3b2f146101355780634cf088d91461013d5780636db5c8fd1461014557806378e979251461014d576100ea565b806308dcb360146100ef5780633410fe6e1461011357806341910f901461012d575b600080fd5b6100f76101fd565b604080516001600160a01b039092168252519081900360200190f35b61011b61020c565b60408051918252519081900360200190f35b61011b610213565b61011b610219565b6100f761021f565b61011b61022e565b61011b610234565b61011b6004803603602081101561016b57600080fd5b50356001600160a01b031661023a565b61011b61024c565b6100f7610252565b610193610261565b604080519115158252519081900360200190f35b61011b610285565b61011b600480360360208110156101c557600080fd5b50356001600160a01b031661028c565b6101fb600480360360208110156101eb57600080fd5b50356001600160a01b031661029e565b005b6001546001600160a01b031681565b6227ac4081565b610b9f81565b60055481565b6002546001600160a01b031681565b60035481565b60045481565b60066020526000908152604090205481565b60085481565b6000546001600160a01b031690565b600080546001600160a01b03166102766102f2565b6001600160a01b031614905090565b6212750081565b60076020526000908152604090205481565b6102a6610261565b6102e6576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6102ef816102f6565b50565b3390565b6001600160a01b03811661033b5760405162461bcd60e51b81526004018080602001828103825260268152602001806103976026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a723158205cf84d99cef06e4e3b7352c788d94dd75a5cfceeb74fec8eb22af8bc6ac7b86564736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637a9262a21161008c5780638f32d59b116100665780638f32d59b1461018b578063934d1fa4146101a7578063d42b779d146101af578063f2fde38b146101d5576100ea565b80637a9262a21461015557806382100e3f1461017b5780638da5cb5b14610183576100ea565b806344bb3b2f116100c857806344bb3b2f146101355780634cf088d91461013d5780636db5c8fd1461014557806378e979251461014d576100ea565b806308dcb360146100ef5780633410fe6e1461011357806341910f901461012d575b600080fd5b6100f76101fd565b604080516001600160a01b039092168252519081900360200190f35b61011b61020c565b60408051918252519081900360200190f35b61011b610213565b61011b610219565b6100f761021f565b61011b61022e565b61011b610234565b61011b6004803603602081101561016b57600080fd5b50356001600160a01b031661023a565b61011b61024c565b6100f7610252565b610193610261565b604080519115158252519081900360200190f35b61011b610285565b61011b600480360360208110156101c557600080fd5b50356001600160a01b031661028c565b6101fb600480360360208110156101eb57600080fd5b50356001600160a01b031661029e565b005b6001546001600160a01b031681565b6227ac4081565b610b9f81565b60055481565b6002546001600160a01b031681565b60035481565b60045481565b60066020526000908152604090205481565b60085481565b6000546001600160a01b031690565b600080546001600160a01b03166102766102f2565b6001600160a01b031614905090565b6212750081565b60076020526000908152604090205481565b6102a6610261565b6102e6576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6102ef816102f6565b50565b3390565b6001600160a01b03811661033b5760405162461bcd60e51b81526004018080602001828103825260268152602001806103976026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a723158205cf84d99cef06e4e3b7352c788d94dd75a5cfceeb74fec8eb22af8bc6ac7b86564736f6c63430005110032",
"linkReferences": {},
"deployedLinkReferences": {}
}