From 6fc9283acac96dbaad2e531f84d772b09e03e73c Mon Sep 17 00:00:00 2001 From: tuxxy Date: Fri, 14 Feb 2020 20:23:10 +0100 Subject: [PATCH 1/5] Add current iteration of registries to a registries directory --- registries/README.md | 9 +++++++++ registries/cassandra/README.md | 1 + registries/cassandra/contract_registry.json | 1 + registries/frances/README.md | 1 + registries/frances/contract_registry.json | 1 + registries/mainnet/README.md | 1 + registries/miranda/README.md | 2 ++ registries/miranda/contract_registry.json | 1 + registries/miranda/individual_allocation_ABI.json | 1 + 9 files changed, 18 insertions(+) create mode 100644 registries/README.md create mode 100644 registries/cassandra/README.md create mode 100644 registries/cassandra/contract_registry.json create mode 100644 registries/frances/README.md create mode 100644 registries/frances/contract_registry.json create mode 100644 registries/mainnet/README.md create mode 100644 registries/miranda/README.md create mode 100644 registries/miranda/contract_registry.json create mode 100644 registries/miranda/individual_allocation_ABI.json diff --git a/registries/README.md b/registries/README.md new file mode 100644 index 000000000..cb1c9d0d8 --- /dev/null +++ b/registries/README.md @@ -0,0 +1,9 @@ +# Registries of NuCypher Networks + +This repo contains an authorative source of contract registries for several NuCypher networks. + + +* **Miranda**: Our first decentralized testnet. Not supported anymore +* **Frances**: Our second testnet, Only for development purposes +* **Cassandra**: Incentivized Testnet, supporting our 'Come and Stake It' initiative +* **Mainnet**: (_Soon_) diff --git a/registries/cassandra/README.md b/registries/cassandra/README.md new file mode 100644 index 000000000..3382a1f9f --- /dev/null +++ b/registries/cassandra/README.md @@ -0,0 +1 @@ +# Registry for Incentivized testnet ("Cassandra") diff --git a/registries/cassandra/contract_registry.json b/registries/cassandra/contract_registry.json new file mode 100644 index 000000000..733560557 --- /dev/null +++ b/registries/cassandra/contract_registry.json @@ -0,0 +1 @@ +[["NuCypherToken", "v0.0.0", "0xA59820B4C01A3c3869554DB0243a02bcA7b15730", [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_totalSupply", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]], ["StakingEscrow", "v2.2.1", "0xfC4Fd75F3B88Cbc5fdAe1b0011De4C361592E28e", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStakeDisabled", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}, {"name": "windDown", "type": "bool"}, {"name": "reservedSlot2", "type": "uint256"}, {"name": "reservedSlot3", "type": "uint256"}, {"name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}, {"name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0xdC098916291e1ef683A4f469fa32025c872194df", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "v2.1.1", "0xa4AF689C22b6505f65bD8dfDf47B2d2Ce59a5Ee4", [{"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}, {"name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "sponsor", "type": "address"}, {"name": "owner", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "startTimestamp", "type": "uint64"}, {"name": "endTimestamp", "type": "uint64"}, {"name": "disabled", "type": "bool"}, {"name": "reservedSlot1", "type": "uint256"}, {"name": "reservedSlot2", "type": "uint256"}, {"name": "reservedSlot3", "type": "uint256"}, {"name": "reservedSlot4", "type": "uint256"}, {"name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_policyOwner", "type": "address"}, {"name": "_endTimestamp", "type": "uint64"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sponsor", "type": "address"}, {"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "rewardRate", "type": "uint256"}, {"indexed": false, "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0x1A0bA37398f2476F533Ae2ab622A79E310AA7680", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Adjudicator", "v1.1.1", "0x1146FF7DFd0C1082F2431B5AA3ea50c47544a858", [{"constant": false, "inputs": [{"name": "_capsuleBytes", "type": "bytes"}, {"name": "_cFragBytes", "type": "bytes"}, {"name": "_cFragSignature", "type": "bytes"}, {"name": "_taskSignature", "type": "bytes"}, {"name": "_requesterPublicKey", "type": "bytes"}, {"name": "_workerPublicKey", "type": "bytes"}, {"name": "_workerIdentityEvidence", "type": "bytes"}, {"name": "_preComputedData", "type": "bytes"}], "name": "evaluateCFrag", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "penaltyHistoryCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "basePenalty", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "hashAlgorithm", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "penaltyHistory", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes32"}], "name": "evaluatedCFrags", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "percentagePenaltyCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}, {"name": "_hashAlgorithm", "type": "uint8"}, {"name": "_basePenalty", "type": "uint256"}, {"name": "_penaltyHistoryCoefficient", "type": "uint256"}, {"name": "_percentagePenaltyCoefficient", "type": "uint256"}, {"name": "_rewardCoefficient", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "correctness", "type": "bool"}], "name": "CFragEvaluated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "staker", "type": "address"}], "name": "IncorrectCFragVerdict", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0x319d0CaDfb80428c155781E4702085bFD3703265", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingInterface", "v1.3.1", "0xBC333864eC7657ae94378ebB91F323B171d670c7", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdrawPolicyReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "depositAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_escrow", "type": "address"}, {"name": "_policyManager", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "DepositedAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "WithdrawnAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRewardWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "MinRewardRateSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "worker", "type": "address"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}]], ["StakingInterfaceRouter", "v0.0.0", "0xD11837B9bA76AAe97A3E404F05ce63c096C02028", [{"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["WorkLock", "v0.0.0", "0x9cEc6a8d9018FF59Bf5df2Ba6914469779EE77Bf", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}, {"internalType": "uint256", "name": "_startBidDate", "type": "uint256"}, {"internalType": "uint256", "name": "_endBidDate", "type": "uint256"}, {"internalType": "uint256", "name": "_boostingRefund", "type": "uint256"}, {"internalType": "uint16", "name": "_stakingPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "depositedETH", "type": "uint256"}], "name": "Bid", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Canceled", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "claimedTokens", "type": "uint256"}], "name": "Claimed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "refundETH", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "completedWork", "type": "uint256"}], "name": "Refund", "type": "event"}, {"constant": true, "inputs": [], "name": "SLOWING_REFUND", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "bid", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "boostingRefund", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "burnUnclaimed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "cancelBid", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "claim", "outputs": [{"internalType": "uint256", "name": "claimedTokens", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "endBidDate", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "ethSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_ethAmount", "type": "uint256"}], "name": "ethToTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_ethAmount", "type": "uint256"}], "name": "ethToWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_depositor", "type": "address"}], "name": "getRemainingWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundETH", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "stakingPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "startBidDate", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "tokenDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "tokenSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "unclaimedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workInfo", "outputs": [{"internalType": "uint256", "name": "depositedETH", "type": "uint256"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "claimed", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_completedWork", "type": "uint256"}], "name": "workToETH", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}]], ["StakingEscrow", "v2.2.2", "0x48e7F9F1569A8296Cd7F54702A11770B0bf69732", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "uint32", "name": "_hoursPerPeriod", "type": "uint32"}, {"internalType": "uint256", "name": "_miningCoefficient", "type": "uint256"}, {"internalType": "uint256", "name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"internalType": "uint16", "name": "_rewardedPeriods", "type": "uint16"}, {"internalType": "uint16", "name": "_minLockedPeriods", "type": "uint16"}, {"internalType": "uint256", "name": "_minAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint256", "name": "_maxAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint16", "name": "_minWorkerPeriods", "type": "uint16"}, {"internalType": "bool", "name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"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": "staker", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "penalty", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "investigator", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "address", "name": "worker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"internalType": "contract AdjudicatorInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint256", "name": "_newValue", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"internalType": "uint256", "name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "_periods", "type": "uint16"}, {"internalType": "uint256", "name": "_startIndex", "type": "uint256"}, {"internalType": "uint256", "name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"internalType": "uint256", "name": "allLockedTokens", "type": "uint256"}, {"internalType": "uint256[2][]", "name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"internalType": "uint16", "name": "startPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "periods", "type": "uint16"}, {"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint16", "name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"internalType": "contract PolicyManagerInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_from", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "address", "name": "_tokenContract", "type": "address"}, {"internalType": "bytes", "name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract AdjudicatorInterface", "name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract PolicyManagerInterface", "name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract WorkLockInterface", "name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "bool", "name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_penalty", "type": "uint256"}, {"internalType": "address", "name": "_investigator", "type": "address"}, {"internalType": "uint256", "name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"internalType": "uint256", "name": "value", "type": "uint256"}, {"internalType": "uint16", "name": "confirmedPeriod1", "type": "uint16"}, {"internalType": "uint16", "name": "confirmedPeriod2", "type": "uint16"}, {"internalType": "bool", "name": "reStakeDisabled", "type": "bool"}, {"internalType": "uint16", "name": "lockReStakeUntilPeriod", "type": "uint16"}, {"internalType": "address", "name": "worker", "type": "address"}, {"internalType": "uint16", "name": "workerStartPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastActivePeriod", "type": "uint16"}, {"internalType": "bool", "name": "measureWork", "type": "bool"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "windDown", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "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": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"internalType": "contract WorkLockInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}]], ["PolicyManager", "v2.1.2", "0x50635b5CcD5b7D8F4911b7089998E3B46560076B", [{"inputs": [{"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "period", "type": "uint16"}], "name": "NodeBrokenState", "type": "event"}, {"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": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sponsor", "type": "address"}, {"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"indexed": false, "internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint256", "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": true, "internalType": "address", "name": "recipient", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_policyOwner", "type": "address"}, {"internalType": "uint64", "name": "_endTimestamp", "type": "uint64"}, {"internalType": "address[]", "name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"internalType": "address", "name": "node", "type": "address"}, {"internalType": "uint256", "name": "indexOfDowntimePeriods", "type": "uint256"}, {"internalType": "uint16", "name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "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": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "nodes", "outputs": [{"internalType": "uint256", "name": "reward", "type": "uint256"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint16", "name": "lastMinedPeriod", "type": "uint16"}, {"internalType": "uint256", "name": "minRewardRate", "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": [{"internalType": "bytes16", "name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"internalType": "address payable", "name": "sponsor", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"internalType": "bool", "name": "disabled", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot1", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "bytes", "name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "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": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address payable", "name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}]], ["PolicyManager", "v2.1.3", "0xB1E6D5c939818B96491d9c022DAca00cDb3BfA92", [{"inputs": [{"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "period", "type": "uint16"}], "name": "NodeBrokenState", "type": "event"}, {"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": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sponsor", "type": "address"}, {"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"indexed": false, "internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint256", "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": true, "internalType": "address", "name": "recipient", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_policyOwner", "type": "address"}, {"internalType": "uint64", "name": "_endTimestamp", "type": "uint64"}, {"internalType": "address[]", "name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"internalType": "address", "name": "node", "type": "address"}, {"internalType": "uint256", "name": "indexOfDowntimePeriods", "type": "uint256"}, {"internalType": "uint16", "name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "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": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "nodes", "outputs": [{"internalType": "uint256", "name": "reward", "type": "uint256"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint16", "name": "lastMinedPeriod", "type": "uint16"}, {"internalType": "uint256", "name": "minRewardRate", "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": [{"internalType": "bytes16", "name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"internalType": "address payable", "name": "sponsor", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"internalType": "bool", "name": "disabled", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot1", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "bytes", "name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "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": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address payable", "name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}]], ["StakingEscrow", "v2.2.3", "0x1C7011c4b701EbBfa5deBFC14748aF3562E5Ee79", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "uint32", "name": "_hoursPerPeriod", "type": "uint32"}, {"internalType": "uint256", "name": "_miningCoefficient", "type": "uint256"}, {"internalType": "uint256", "name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"internalType": "uint16", "name": "_rewardedPeriods", "type": "uint16"}, {"internalType": "uint16", "name": "_minLockedPeriods", "type": "uint16"}, {"internalType": "uint256", "name": "_minAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint256", "name": "_maxAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint16", "name": "_minWorkerPeriods", "type": "uint16"}, {"internalType": "bool", "name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"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": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "penalty", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "investigator", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "address", "name": "worker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"internalType": "contract AdjudicatorInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint256", "name": "_newValue", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"internalType": "uint256", "name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "_periods", "type": "uint16"}, {"internalType": "uint256", "name": "_startIndex", "type": "uint256"}, {"internalType": "uint256", "name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"internalType": "uint256", "name": "allLockedTokens", "type": "uint256"}, {"internalType": "uint256[2][]", "name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"internalType": "uint16", "name": "startPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "periods", "type": "uint16"}, {"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint16", "name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"internalType": "contract PolicyManagerInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_from", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "address", "name": "_tokenContract", "type": "address"}, {"internalType": "bytes", "name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract AdjudicatorInterface", "name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract PolicyManagerInterface", "name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract WorkLockInterface", "name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "bool", "name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_penalty", "type": "uint256"}, {"internalType": "address", "name": "_investigator", "type": "address"}, {"internalType": "uint256", "name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"internalType": "uint256", "name": "value", "type": "uint256"}, {"internalType": "uint16", "name": "confirmedPeriod1", "type": "uint16"}, {"internalType": "uint16", "name": "confirmedPeriod2", "type": "uint16"}, {"internalType": "bool", "name": "reStakeDisabled", "type": "bool"}, {"internalType": "uint16", "name": "lockReStakeUntilPeriod", "type": "uint16"}, {"internalType": "address", "name": "worker", "type": "address"}, {"internalType": "uint16", "name": "workerStartPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastActivePeriod", "type": "uint16"}, {"internalType": "bool", "name": "measureWork", "type": "bool"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "windDown", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "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": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"internalType": "contract WorkLockInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}]]] \ No newline at end of file diff --git a/registries/frances/README.md b/registries/frances/README.md new file mode 100644 index 000000000..1e554fe9b --- /dev/null +++ b/registries/frances/README.md @@ -0,0 +1 @@ +# Registry for NuCypher Tesnet 2 ("Frances") diff --git a/registries/frances/contract_registry.json b/registries/frances/contract_registry.json new file mode 100644 index 000000000..fb8dc9327 --- /dev/null +++ b/registries/frances/contract_registry.json @@ -0,0 +1 @@ +[["NuCypherToken","v0.0.0","0xa6596Ba202f456c87aD4C745c6A35600A7fC83F9",[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]],["StakingEscrow","v2.1.2","0xeEB9a5d5970A5f06Bcb0D5C0E42d4EFD5D2B8Fdb",[{"constant":false,"inputs":[{"name":"_reStake","type":"bool"}],"name":"setReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getSubStakesLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentMintingPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getAllTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"workLock","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SUB_STAKES","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_adjudicator","type":"address"}],"name":"setAdjudicator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minLockedPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_workLock","type":"address"}],"name":"setWorkLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secondsPerPeriod","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getLastActivePeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_period","type":"uint16"}],"name":"findIndexOfPastDowntime","outputs":[{"name":"index","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_periods","type":"uint16"},{"name":"_startIndex","type":"uint256"},{"name":"_maxStakers","type":"uint256"}],"name":"getActiveStakers","outputs":[{"name":"allLockedTokens","type":"uint256"},{"name":"activeStakers","type":"uint256[2][]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_measureWork","type":"bool"}],"name":"setWorkMeasurement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getLastPeriodOfSubStake","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"stakerInfo","outputs":[{"name":"value","type":"uint256"},{"name":"confirmedPeriod1","type":"uint16"},{"name":"confirmedPeriod2","type":"uint16"},{"name":"reStakeDisabled","type":"bool"},{"name":"lockReStakeUntilPeriod","type":"uint16"},{"name":"worker","type":"address"},{"name":"workerStartPeriod","type":"uint16"},{"name":"lastActivePeriod","type":"uint16"},{"name":"measureWork","type":"bool"},{"name":"completedWork","type":"uint256"},{"name":"reservedSlot1","type":"uint256"},{"name":"reservedSlot2","type":"uint256"},{"name":"reservedSlot3","type":"uint256"},{"name":"reservedSlot4","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getSubStakeInfo","outputs":[{"name":"firstPeriod","type":"uint16"},{"name":"lastPeriod","type":"uint16"},{"name":"periods","type":"uint16"},{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adjudicator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_periods","type":"uint16"}],"name":"getLockedTokensInPast","outputs":[{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReservedReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"workerToStaker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxAllowableLockedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"confirmActivity","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_periods","type":"uint16"}],"name":"getLockedTokens","outputs":[{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"lock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"miningCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minAllowableLockedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"_tokenContract","type":"address"},{"name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getPastDowntime","outputs":[{"name":"startPeriod","type":"uint16"},{"name":"endPeriod","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getPastDowntimeLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getWorkerFromStaker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_penalty","type":"uint256"},{"name":"_investigator","type":"address"},{"name":"_reward","type":"uint256"}],"name":"slashStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getStakersLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedPeriodsCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"policyManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyManager","type":"address"}],"name":"setPolicyManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"EMPTY_CONFIRMED_PERIOD","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentSupply1","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"prolongStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_worker","type":"address"}],"name":"setWorker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"isReStakeLocked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_worker","type":"address"}],"name":"getStakerFromWorker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minWorkerPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getCompletedWork","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_newValue","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"divideStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isTestContract","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_lockReStakeUntilPeriod","type":"uint16"}],"name":"lockReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"lockedPerPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentSupply2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"stakers","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_reservedReward","type":"uint256"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardedPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_hoursPerPeriod","type":"uint32"},{"name":"_miningCoefficient","type":"uint256"},{"name":"_lockedPeriodsCoefficient","type":"uint256"},{"name":"_rewardedPeriods","type":"uint16"},{"name":"_minLockedPeriods","type":"uint16"},{"name":"_minAllowableLockedTokens","type":"uint256"},{"name":"_maxAllowableLockedTokens","type":"uint256"},{"name":"_minWorkerPeriods","type":"uint16"},{"name":"_isTestContract","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"firstPeriod","type":"uint16"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"oldValue","type":"uint256"},{"indexed":false,"name":"lastPeriod","type":"uint16"},{"indexed":false,"name":"newValue","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Divided","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"period","type":"uint16"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ActivityConfirmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"period","type":"uint16"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Mined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"penalty","type":"uint256"},{"indexed":true,"name":"investigator","type":"address"},{"indexed":false,"name":"reward","type":"uint256"}],"name":"Slashed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"reStake","type":"bool"}],"name":"ReStakeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"lockUntilPeriod","type":"uint16"}],"name":"ReStakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"worker","type":"address"},{"indexed":true,"name":"startPeriod","type":"uint16"}],"name":"WorkerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"measureWork","type":"bool"}],"name":"WorkMeasurementSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burnt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"reservedReward","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0xD37d65e1a27839C98B784fcBfC7A32cd6E7cE42F",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["PolicyManager","v2.1.1","0x0cf492bcA7EbdC44BC288eF0bc9A48CD573D8EA7",[{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"},{"name":"_signature","type":"bytes"}],"name":"revoke","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"nodes","outputs":[{"name":"reward","type":"uint256"},{"name":"rewardRate","type":"uint256"},{"name":"lastMinedPeriod","type":"uint16"},{"name":"minRewardRate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_minRewardRate","type":"uint256"}],"name":"setMinRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secondsPerPeriod","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"withdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"getPolicyOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DEFAULT_REWARD_DELTA","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"refund","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"getArrangementsLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes16"}],"name":"policies","outputs":[{"name":"sponsor","type":"address"},{"name":"owner","type":"address"},{"name":"rewardRate","type":"uint256"},{"name":"startTimestamp","type":"uint64"},{"name":"endTimestamp","type":"uint64"},{"name":"disabled","type":"bool"},{"name":"reservedSlot1","type":"uint256"},{"name":"reservedSlot2","type":"uint256"},{"name":"reservedSlot3","type":"uint256"},{"name":"reservedSlot4","type":"uint256"},{"name":"reservedSlot5","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_policyOwner","type":"address"},{"name":"_endTimestamp","type":"uint64"},{"name":"_nodes","type":"address[]"}],"name":"createPolicy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"revokeArrangement","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"revokePolicy","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"calculateRefundValue","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"setDefaultRewardDelta","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"updateReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"getRevocationHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_index","type":"uint256"}],"name":"getArrangementInfo","outputs":[{"name":"node","type":"address"},{"name":"indexOfDowntimePeriods","type":"uint256"},{"name":"lastRefundedPeriod","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"calculateRefundValue","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"getNodeRewardDelta","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_escrow","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sponsor","type":"address"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"rewardRate","type":"uint256"},{"indexed":false,"name":"startTimestamp","type":"uint64"},{"indexed":false,"name":"endTimestamp","type":"uint64"},{"indexed":false,"name":"numberOfNodes","type":"uint256"}],"name":"PolicyCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"PolicyRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":true,"name":"node","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ArrangementRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"address"},{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":true,"name":"node","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"RefundForArrangement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"RefundForPolicy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0x2d79AD3e961b78906a24294195d394AD23791bE4",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Adjudicator","v1.1.1","0x04ffc84878431a75721d8c9035D653e7A0A323a4",[{"constant":false,"inputs":[{"name":"_capsuleBytes","type":"bytes"},{"name":"_cFragBytes","type":"bytes"},{"name":"_cFragSignature","type":"bytes"},{"name":"_taskSignature","type":"bytes"},{"name":"_requesterPublicKey","type":"bytes"},{"name":"_workerPublicKey","type":"bytes"},{"name":"_workerIdentityEvidence","type":"bytes"},{"name":"_preComputedData","type":"bytes"}],"name":"evaluateCFrag","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"penaltyHistoryCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"basePenalty","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hashAlgorithm","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"penaltyHistory","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"evaluatedCFrags","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"percentagePenaltyCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_escrow","type":"address"},{"name":"_hashAlgorithm","type":"uint8"},{"name":"_basePenalty","type":"uint256"},{"name":"_penaltyHistoryCoefficient","type":"uint256"},{"name":"_percentagePenaltyCoefficient","type":"uint256"},{"name":"_rewardCoefficient","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"evaluationHash","type":"bytes32"},{"indexed":true,"name":"investigator","type":"address"},{"indexed":false,"name":"correctness","type":"bool"}],"name":"CFragEvaluated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"evaluationHash","type":"bytes32"},{"indexed":true,"name":"worker","type":"address"},{"indexed":true,"name":"staker","type":"address"}],"name":"IncorrectCFragVerdict","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0xe43Cbe003523e025ebA8c721370dAf25De2a45Da",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["StakingInterface","v1.2.1","0xefAc8982acBF7A8764Ee076A56437E77926FC3a5",[{"constant":false,"inputs":[{"name":"_reStake","type":"bool"}],"name":"setReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"withdrawPolicyReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_minRewardRate","type":"uint256"}],"name":"setMinRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"depositAsStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"lock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"withdrawAsStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"policyManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"prolongStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_worker","type":"address"}],"name":"setWorker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_newValue","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"divideStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_lockReStakeUntilPeriod","type":"uint16"}],"name":"lockReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_escrow","type":"address"},{"name":"_policyManager","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"DepositedAsStaker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"WithdrawnAsStaker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"newValue","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Divided","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"}],"name":"Mined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"PolicyRewardWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"MinRewardRateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"reStake","type":"bool"}],"name":"ReStakeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"lockUntilPeriod","type":"uint16"}],"name":"ReStakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"worker","type":"address"}],"name":"WorkerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Prolonged","type":"event"}]],["StakingInterfaceRouter","v0.0.0","0xBD75D6B6d137276bcCe651c45e064e796ae26C3A",[{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]]] \ No newline at end of file diff --git a/registries/mainnet/README.md b/registries/mainnet/README.md new file mode 100644 index 000000000..51ce623a7 --- /dev/null +++ b/registries/mainnet/README.md @@ -0,0 +1 @@ +# Registry for NuCypher Mainnet diff --git a/registries/miranda/README.md b/registries/miranda/README.md new file mode 100644 index 000000000..e025b5c7e --- /dev/null +++ b/registries/miranda/README.md @@ -0,0 +1,2 @@ +# Registry for NuCypher Testnet 1 ("Miranda") + diff --git a/registries/miranda/contract_registry.json b/registries/miranda/contract_registry.json new file mode 100644 index 000000000..7ce056b57 --- /dev/null +++ b/registries/miranda/contract_registry.json @@ -0,0 +1 @@ +[["NuCypherToken", "0x894a30aec251c7A38C868e831137514a27C25504", [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_totalSupply", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]], ["StakingEscrow", "0x3A428c38fEB4893E956B578aCdfC71C62e73cd90", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllLockedTokens", "outputs": [{"name": "lockedTokens", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_stakers", "type": "address[]"}, {"name": "_values", "type": "uint256[]"}, {"name": "_periods", "type": "uint16[]"}], "name": "preDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_points", "type": "uint256[]"}, {"name": "_periods", "type": "uint16"}], "name": "sample", "outputs": [{"name": "result", "type": "address[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xBc6297c0781C25A9Bc44eEe22181C98a30DC0229", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "0x9f6FA7609516777090ad5cAF06892080fef4Fd4e", [{"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "client", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "firstPartialReward", "type": "uint256"}, {"name": "startPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "disabled", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_numberOfPeriods", "type": "uint16"}, {"name": "_firstPartialReward", "type": "uint256"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xa8D1Ddd01c42DDC1876D191FE20aBdbd0051f39b", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Adjudicator", "0x9B262fee7235A9b34C8ae260078DB15d9A4E4d6F", [{"constant": false, "inputs": [{"name": "_capsuleBytes", "type": "bytes"}, {"name": "_cFragBytes", "type": "bytes"}, {"name": "_cFragSignature", "type": "bytes"}, {"name": "_taskSignature", "type": "bytes"}, {"name": "_requesterPublicKey", "type": "bytes"}, {"name": "_workerPublicKey", "type": "bytes"}, {"name": "_workerIdentityEvidence", "type": "bytes"}, {"name": "_preComputedData", "type": "bytes"}], "name": "evaluateCFrag", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "penaltyHistoryCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "basePenalty", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "hashAlgorithm", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "penaltyHistory", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes32"}], "name": "evaluatedCFrags", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "percentagePenaltyCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}, {"name": "_hashAlgorithm", "type": "uint8"}, {"name": "_basePenalty", "type": "uint256"}, {"name": "_penaltyHistoryCoefficient", "type": "uint256"}, {"name": "_percentagePenaltyCoefficient", "type": "uint256"}, {"name": "_rewardCoefficient", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "correctness", "type": "bool"}], "name": "CFragEvaluated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "staker", "type": "address"}], "name": "IncorrectCFragVerdict", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xBEb55274Dd2DD8982821B7019d362B5a7039920D", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x7E8B2476cc4942fbf0BF872d4A3Dad256527B4Bf", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllLockedTokens", "outputs": [{"name": "lockedTokens", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_points", "type": "uint256[]"}, {"name": "_periods", "type": "uint16"}], "name": "sample", "outputs": [{"name": "result", "type": "address[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0xEC5B3B0b59B84a517E79A00c3062A63462Da5ECC", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingInterface", "0x24eeaF95C9b0E2043A8C2D65FeE9660dbAf34D0B", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdrawPolicyReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "depositAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_escrow", "type": "address"}, {"name": "_policyManager", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "DepositedAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "WithdrawnAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRewardWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "MinRewardRateSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "worker", "type": "address"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}]], ["StakingInterfaceRouter", "0x446526854b0243697097e7D0b1922fA023B8e31B", [{"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x630064d27ebf15EcecaCe993369b6FF11Ed0e328", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0xe5f3a897268b1d9156b8fbb5f81D2Ad0945b77b4", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x9BCfd8feA1D97b61093679f82f8cdf841f521535", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "0xa290f991A4EcBd3B89124A4E1fA0F8555D9389db", [{"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "client", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "firstPartialReward", "type": "uint256"}, {"name": "startPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "disabled", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_numberOfPeriods", "type": "uint16"}, {"name": "_firstPartialReward", "type": "uint256"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]]] \ No newline at end of file diff --git a/registries/miranda/individual_allocation_ABI.json b/registries/miranda/individual_allocation_ABI.json new file mode 100644 index 000000000..f98aec9be --- /dev/null +++ b/registries/miranda/individual_allocation_ABI.json @@ -0,0 +1 @@ +{"BENEFICIARY_ADDRESS": ["ALLOCATION_CONTRACT_ADDRESS", [{"constant": true, "inputs": [], "name": "linker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawTokens", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_duration", "type": "uint256"}], "name": "initialDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "endLockTimestamp", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedValue", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "withdrawETH", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_linker", "type": "address"}, {"name": "_token", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "duration", "type": "uint256"}], "name": "TokensDeposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "TokensWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ETHWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]]} \ No newline at end of file From 623f39bdb198ccbe77f3a2b4e78c89859af34d8e Mon Sep 17 00:00:00 2001 From: tuxxy Date: Fri, 14 Feb 2020 20:45:28 +0100 Subject: [PATCH 2/5] Update the publication_endpoint for the contract registry --- nucypher/blockchain/eth/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucypher/blockchain/eth/registry.py b/nucypher/blockchain/eth/registry.py index 09194ffaf..f4e1c596a 100644 --- a/nucypher/blockchain/eth/registry.py +++ b/nucypher/blockchain/eth/registry.py @@ -67,14 +67,14 @@ class CanonicalRegistrySource(ABC): class GithubRegistrySource(CanonicalRegistrySource): - _PUBLICATION_REPO = "nucypher/ethereum-contract-registry" + _PUBLICATION_REPO = "nucypher/nucypher" _BASE_URL = f'https://raw.githubusercontent.com/{_PUBLICATION_REPO}' name = "GitHub Registry Source" is_primary = True def get_publication_endpoint(self) -> str: - url = f'{self._BASE_URL}/master/{self.network}/{self.registry_name}' + url = f'{self._BASE_URL}/master/registries/{self.network}/{self.registry_name}' return url def fetch_latest_publication(self) -> Union[str, bytes]: From 2eb94b7d7a53608b6a7b3e787b7814252aa262fb Mon Sep 17 00:00:00 2001 From: tuxxy Date: Fri, 14 Feb 2020 21:14:17 +0100 Subject: [PATCH 3/5] Update the InPackageRegistrySource to use the new registries dir --- .../eth/contract_registry/cassandra/contract_registry.json | 1 - .../eth/contract_registry/frances/contract_registry.json | 1 - .../eth/contract_registry/miranda/contract_registry.json | 1 - .../miranda/individual_allocation_ABI.json | 1 - nucypher/blockchain/eth/registry.py | 7 +++---- 5 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json delete mode 100644 nucypher/blockchain/eth/contract_registry/frances/contract_registry.json delete mode 100644 nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json delete mode 100644 nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json diff --git a/nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json b/nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json deleted file mode 100644 index 733560557..000000000 --- a/nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json +++ /dev/null @@ -1 +0,0 @@ -[["NuCypherToken", "v0.0.0", "0xA59820B4C01A3c3869554DB0243a02bcA7b15730", [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_totalSupply", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]], ["StakingEscrow", "v2.2.1", "0xfC4Fd75F3B88Cbc5fdAe1b0011De4C361592E28e", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStakeDisabled", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}, {"name": "windDown", "type": "bool"}, {"name": "reservedSlot2", "type": "uint256"}, {"name": "reservedSlot3", "type": "uint256"}, {"name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}, {"name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0xdC098916291e1ef683A4f469fa32025c872194df", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "v2.1.1", "0xa4AF689C22b6505f65bD8dfDf47B2d2Ce59a5Ee4", [{"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}, {"name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "sponsor", "type": "address"}, {"name": "owner", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "startTimestamp", "type": "uint64"}, {"name": "endTimestamp", "type": "uint64"}, {"name": "disabled", "type": "bool"}, {"name": "reservedSlot1", "type": "uint256"}, {"name": "reservedSlot2", "type": "uint256"}, {"name": "reservedSlot3", "type": "uint256"}, {"name": "reservedSlot4", "type": "uint256"}, {"name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_policyOwner", "type": "address"}, {"name": "_endTimestamp", "type": "uint64"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sponsor", "type": "address"}, {"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "rewardRate", "type": "uint256"}, {"indexed": false, "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0x1A0bA37398f2476F533Ae2ab622A79E310AA7680", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Adjudicator", "v1.1.1", "0x1146FF7DFd0C1082F2431B5AA3ea50c47544a858", [{"constant": false, "inputs": [{"name": "_capsuleBytes", "type": "bytes"}, {"name": "_cFragBytes", "type": "bytes"}, {"name": "_cFragSignature", "type": "bytes"}, {"name": "_taskSignature", "type": "bytes"}, {"name": "_requesterPublicKey", "type": "bytes"}, {"name": "_workerPublicKey", "type": "bytes"}, {"name": "_workerIdentityEvidence", "type": "bytes"}, {"name": "_preComputedData", "type": "bytes"}], "name": "evaluateCFrag", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "penaltyHistoryCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "basePenalty", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "hashAlgorithm", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "penaltyHistory", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes32"}], "name": "evaluatedCFrags", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "percentagePenaltyCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}, {"name": "_hashAlgorithm", "type": "uint8"}, {"name": "_basePenalty", "type": "uint256"}, {"name": "_penaltyHistoryCoefficient", "type": "uint256"}, {"name": "_percentagePenaltyCoefficient", "type": "uint256"}, {"name": "_rewardCoefficient", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "correctness", "type": "bool"}], "name": "CFragEvaluated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "staker", "type": "address"}], "name": "IncorrectCFragVerdict", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "v0.0.0", "0x319d0CaDfb80428c155781E4702085bFD3703265", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingInterface", "v1.3.1", "0xBC333864eC7657ae94378ebB91F323B171d670c7", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdrawPolicyReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "depositAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_escrow", "type": "address"}, {"name": "_policyManager", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "DepositedAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "WithdrawnAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRewardWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "MinRewardRateSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "worker", "type": "address"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}]], ["StakingInterfaceRouter", "v0.0.0", "0xD11837B9bA76AAe97A3E404F05ce63c096C02028", [{"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["WorkLock", "v0.0.0", "0x9cEc6a8d9018FF59Bf5df2Ba6914469779EE77Bf", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}, {"internalType": "uint256", "name": "_startBidDate", "type": "uint256"}, {"internalType": "uint256", "name": "_endBidDate", "type": "uint256"}, {"internalType": "uint256", "name": "_boostingRefund", "type": "uint256"}, {"internalType": "uint16", "name": "_stakingPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "depositedETH", "type": "uint256"}], "name": "Bid", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Canceled", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "claimedTokens", "type": "uint256"}], "name": "Claimed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "refundETH", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "completedWork", "type": "uint256"}], "name": "Refund", "type": "event"}, {"constant": true, "inputs": [], "name": "SLOWING_REFUND", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "bid", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "boostingRefund", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "burnUnclaimed", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "cancelBid", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "claim", "outputs": [{"internalType": "uint256", "name": "claimedTokens", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "endBidDate", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "ethSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_ethAmount", "type": "uint256"}], "name": "ethToTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_ethAmount", "type": "uint256"}], "name": "ethToWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_depositor", "type": "address"}], "name": "getRemainingWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundETH", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "stakingPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "startBidDate", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "tokenDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "tokenSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "unclaimedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workInfo", "outputs": [{"internalType": "uint256", "name": "depositedETH", "type": "uint256"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "claimed", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "_completedWork", "type": "uint256"}], "name": "workToETH", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}]], ["StakingEscrow", "v2.2.2", "0x48e7F9F1569A8296Cd7F54702A11770B0bf69732", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "uint32", "name": "_hoursPerPeriod", "type": "uint32"}, {"internalType": "uint256", "name": "_miningCoefficient", "type": "uint256"}, {"internalType": "uint256", "name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"internalType": "uint16", "name": "_rewardedPeriods", "type": "uint16"}, {"internalType": "uint16", "name": "_minLockedPeriods", "type": "uint16"}, {"internalType": "uint256", "name": "_minAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint256", "name": "_maxAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint16", "name": "_minWorkerPeriods", "type": "uint16"}, {"internalType": "bool", "name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"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": "staker", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "penalty", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "investigator", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "address", "name": "worker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"internalType": "contract AdjudicatorInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint256", "name": "_newValue", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"internalType": "uint256", "name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "_periods", "type": "uint16"}, {"internalType": "uint256", "name": "_startIndex", "type": "uint256"}, {"internalType": "uint256", "name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"internalType": "uint256", "name": "allLockedTokens", "type": "uint256"}, {"internalType": "uint256[2][]", "name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"internalType": "uint16", "name": "startPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "periods", "type": "uint16"}, {"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint16", "name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"internalType": "contract PolicyManagerInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_from", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "address", "name": "_tokenContract", "type": "address"}, {"internalType": "bytes", "name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract AdjudicatorInterface", "name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract PolicyManagerInterface", "name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract WorkLockInterface", "name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "bool", "name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_penalty", "type": "uint256"}, {"internalType": "address", "name": "_investigator", "type": "address"}, {"internalType": "uint256", "name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"internalType": "uint256", "name": "value", "type": "uint256"}, {"internalType": "uint16", "name": "confirmedPeriod1", "type": "uint16"}, {"internalType": "uint16", "name": "confirmedPeriod2", "type": "uint16"}, {"internalType": "bool", "name": "reStakeDisabled", "type": "bool"}, {"internalType": "uint16", "name": "lockReStakeUntilPeriod", "type": "uint16"}, {"internalType": "address", "name": "worker", "type": "address"}, {"internalType": "uint16", "name": "workerStartPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastActivePeriod", "type": "uint16"}, {"internalType": "bool", "name": "measureWork", "type": "bool"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "windDown", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "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": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"internalType": "contract WorkLockInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}]], ["PolicyManager", "v2.1.2", "0x50635b5CcD5b7D8F4911b7089998E3B46560076B", [{"inputs": [{"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "period", "type": "uint16"}], "name": "NodeBrokenState", "type": "event"}, {"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": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sponsor", "type": "address"}, {"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"indexed": false, "internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint256", "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": true, "internalType": "address", "name": "recipient", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_policyOwner", "type": "address"}, {"internalType": "uint64", "name": "_endTimestamp", "type": "uint64"}, {"internalType": "address[]", "name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"internalType": "address", "name": "node", "type": "address"}, {"internalType": "uint256", "name": "indexOfDowntimePeriods", "type": "uint256"}, {"internalType": "uint16", "name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "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": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "nodes", "outputs": [{"internalType": "uint256", "name": "reward", "type": "uint256"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint16", "name": "lastMinedPeriod", "type": "uint16"}, {"internalType": "uint256", "name": "minRewardRate", "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": [{"internalType": "bytes16", "name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"internalType": "address payable", "name": "sponsor", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"internalType": "bool", "name": "disabled", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot1", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "bytes", "name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "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": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address payable", "name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}]], ["PolicyManager", "v2.1.3", "0xB1E6D5c939818B96491d9c022DAca00cDb3BfA92", [{"inputs": [{"internalType": "contract StakingEscrow", "name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "period", "type": "uint16"}], "name": "NodeBrokenState", "type": "event"}, {"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": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sponsor", "type": "address"}, {"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"indexed": false, "internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"indexed": false, "internalType": "uint256", "name": "numberOfNodes", "type": "uint256"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "bytes16", "name": "policyId", "type": "bytes16"}, {"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "node", "type": "address"}, {"indexed": true, "internalType": "address", "name": "recipient", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"constant": true, "inputs": [], "name": "DEFAULT_REWARD_DELTA", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_policyOwner", "type": "address"}, {"internalType": "uint64", "name": "_endTimestamp", "type": "uint64"}, {"internalType": "address[]", "name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"internalType": "contract StakingEscrow", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"internalType": "address", "name": "node", "type": "address"}, {"internalType": "uint256", "name": "indexOfDowntimePeriods", "type": "uint256"}, {"internalType": "uint16", "name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"internalType": "int256", "name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "getPolicyOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "getRevocationHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "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": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "nodes", "outputs": [{"internalType": "uint256", "name": "reward", "type": "uint256"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint16", "name": "lastMinedPeriod", "type": "uint16"}, {"internalType": "uint256", "name": "minRewardRate", "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": [{"internalType": "bytes16", "name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"internalType": "address payable", "name": "sponsor", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "uint256", "name": "rewardRate", "type": "uint256"}, {"internalType": "uint64", "name": "startTimestamp", "type": "uint64"}, {"internalType": "uint64", "name": "endTimestamp", "type": "uint64"}, {"internalType": "bool", "name": "disabled", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot1", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot5", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "refund", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "bytes", "name": "_signature", "type": "bytes"}], "name": "revoke", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}, {"internalType": "address", "name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bytes16", "name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [{"internalType": "uint256", "name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "setDefaultRewardDelta", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "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": false, "inputs": [{"internalType": "address", "name": "_node", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address payable", "name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}]], ["StakingEscrow", "v2.2.3", "0x1C7011c4b701EbBfa5deBFC14748aF3562E5Ee79", [{"inputs": [{"internalType": "contract NuCypherToken", "name": "_token", "type": "address"}, {"internalType": "uint32", "name": "_hoursPerPeriod", "type": "uint32"}, {"internalType": "uint256", "name": "_miningCoefficient", "type": "uint256"}, {"internalType": "uint256", "name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"internalType": "uint16", "name": "_rewardedPeriods", "type": "uint16"}, {"internalType": "uint16", "name": "_minLockedPeriods", "type": "uint16"}, {"internalType": "uint256", "name": "_minAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint256", "name": "_maxAllowableLockedTokens", "type": "uint256"}, {"internalType": "uint16", "name": "_minWorkerPeriods", "type": "uint16"}, {"internalType": "bool", "name": "_isTestContract", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Burnt", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "oldValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "newValue", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "period", "type": "uint16"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"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": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}, {"indexed": false, "internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "internalType": "uint16", "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint16", "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "penalty", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "investigator", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "testTarget", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "target", "type": "address"}, {"indexed": false, "internalType": "address", "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "windDown", "type": "bool"}], "name": "WindDownSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "staker", "type": "address"}, {"indexed": true, "internalType": "address", "name": "worker", "type": "address"}, {"indexed": true, "internalType": "uint16", "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"internalType": "contract AdjudicatorInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint256", "name": "_newValue", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"internalType": "uint256", "name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "_periods", "type": "uint16"}, {"internalType": "uint256", "name": "_startIndex", "type": "uint256"}, {"internalType": "uint256", "name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"internalType": "uint256", "name": "allLockedTokens", "type": "uint256"}, {"internalType": "uint256[2][]", "name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"internalType": "uint16", "name": "startPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"internalType": "uint16", "name": "firstPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "periods", "type": "uint16"}, {"internalType": "uint256", "name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_reservedReward", "type": "uint256"}], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isTestContract", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint16", "name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"internalType": "contract PolicyManagerInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_index", "type": "uint256"}, {"internalType": "uint16", "name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_from", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "address", "name": "_tokenContract", "type": "address"}, {"internalType": "bytes", "name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"internalType": "uint16", "name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"internalType": "uint32", "name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract AdjudicatorInterface", "name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract PolicyManagerInterface", "name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "bool", "name": "_windDown", "type": "bool"}], "name": "setWindDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "contract WorkLockInterface", "name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "bool", "name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "_staker", "type": "address"}, {"internalType": "uint256", "name": "_penalty", "type": "uint256"}, {"internalType": "address", "name": "_investigator", "type": "address"}, {"internalType": "uint256", "name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"internalType": "uint256", "name": "value", "type": "uint256"}, {"internalType": "uint16", "name": "confirmedPeriod1", "type": "uint16"}, {"internalType": "uint16", "name": "confirmedPeriod2", "type": "uint16"}, {"internalType": "bool", "name": "reStakeDisabled", "type": "bool"}, {"internalType": "uint16", "name": "lockReStakeUntilPeriod", "type": "uint16"}, {"internalType": "address", "name": "worker", "type": "address"}, {"internalType": "uint16", "name": "workerStartPeriod", "type": "uint16"}, {"internalType": "uint16", "name": "lastActivePeriod", "type": "uint16"}, {"internalType": "bool", "name": "measureWork", "type": "bool"}, {"internalType": "uint256", "name": "completedWork", "type": "uint256"}, {"internalType": "bool", "name": "windDown", "type": "bool"}, {"internalType": "uint256", "name": "reservedSlot2", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot3", "type": "uint256"}, {"internalType": "uint256", "name": "reservedSlot4", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"internalType": "contract NuCypherToken", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "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": false, "inputs": [{"internalType": "address", "name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"internalType": "contract WorkLockInterface", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}]]] \ No newline at end of file diff --git a/nucypher/blockchain/eth/contract_registry/frances/contract_registry.json b/nucypher/blockchain/eth/contract_registry/frances/contract_registry.json deleted file mode 100644 index fb8dc9327..000000000 --- a/nucypher/blockchain/eth/contract_registry/frances/contract_registry.json +++ /dev/null @@ -1 +0,0 @@ -[["NuCypherToken","v0.0.0","0xa6596Ba202f456c87aD4C745c6A35600A7fC83F9",[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]],["StakingEscrow","v2.1.2","0xeEB9a5d5970A5f06Bcb0D5C0E42d4EFD5D2B8Fdb",[{"constant":false,"inputs":[{"name":"_reStake","type":"bool"}],"name":"setReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getSubStakesLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentMintingPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getAllTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"workLock","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SUB_STAKES","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_adjudicator","type":"address"}],"name":"setAdjudicator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minLockedPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_workLock","type":"address"}],"name":"setWorkLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secondsPerPeriod","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getLastActivePeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_period","type":"uint16"}],"name":"findIndexOfPastDowntime","outputs":[{"name":"index","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_periods","type":"uint16"},{"name":"_startIndex","type":"uint256"},{"name":"_maxStakers","type":"uint256"}],"name":"getActiveStakers","outputs":[{"name":"allLockedTokens","type":"uint256"},{"name":"activeStakers","type":"uint256[2][]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_measureWork","type":"bool"}],"name":"setWorkMeasurement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getLastPeriodOfSubStake","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"stakerInfo","outputs":[{"name":"value","type":"uint256"},{"name":"confirmedPeriod1","type":"uint16"},{"name":"confirmedPeriod2","type":"uint16"},{"name":"reStakeDisabled","type":"bool"},{"name":"lockReStakeUntilPeriod","type":"uint16"},{"name":"worker","type":"address"},{"name":"workerStartPeriod","type":"uint16"},{"name":"lastActivePeriod","type":"uint16"},{"name":"measureWork","type":"bool"},{"name":"completedWork","type":"uint256"},{"name":"reservedSlot1","type":"uint256"},{"name":"reservedSlot2","type":"uint256"},{"name":"reservedSlot3","type":"uint256"},{"name":"reservedSlot4","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getSubStakeInfo","outputs":[{"name":"firstPeriod","type":"uint16"},{"name":"lastPeriod","type":"uint16"},{"name":"periods","type":"uint16"},{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adjudicator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_periods","type":"uint16"}],"name":"getLockedTokensInPast","outputs":[{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReservedReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"workerToStaker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxAllowableLockedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"confirmActivity","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_periods","type":"uint16"}],"name":"getLockedTokens","outputs":[{"name":"lockedValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"lock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"miningCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minAllowableLockedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"_tokenContract","type":"address"},{"name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"},{"name":"_index","type":"uint256"}],"name":"getPastDowntime","outputs":[{"name":"startPeriod","type":"uint16"},{"name":"endPeriod","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getPastDowntimeLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getWorkerFromStaker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_penalty","type":"uint256"},{"name":"_investigator","type":"address"},{"name":"_reward","type":"uint256"}],"name":"slashStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getStakersLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedPeriodsCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"policyManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyManager","type":"address"}],"name":"setPolicyManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"EMPTY_CONFIRMED_PERIOD","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentSupply1","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"prolongStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_worker","type":"address"}],"name":"setWorker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"isReStakeLocked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_worker","type":"address"}],"name":"getStakerFromWorker","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minWorkerPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_staker","type":"address"}],"name":"getCompletedWork","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_newValue","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"divideStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_staker","type":"address"},{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isTestContract","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_lockReStakeUntilPeriod","type":"uint16"}],"name":"lockReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"lockedPerPeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentSupply2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"stakers","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_reservedReward","type":"uint256"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardedPeriods","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_hoursPerPeriod","type":"uint32"},{"name":"_miningCoefficient","type":"uint256"},{"name":"_lockedPeriodsCoefficient","type":"uint256"},{"name":"_rewardedPeriods","type":"uint16"},{"name":"_minLockedPeriods","type":"uint16"},{"name":"_minAllowableLockedTokens","type":"uint256"},{"name":"_maxAllowableLockedTokens","type":"uint256"},{"name":"_minWorkerPeriods","type":"uint16"},{"name":"_isTestContract","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"firstPeriod","type":"uint16"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"oldValue","type":"uint256"},{"indexed":false,"name":"lastPeriod","type":"uint16"},{"indexed":false,"name":"newValue","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Divided","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"period","type":"uint16"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ActivityConfirmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"period","type":"uint16"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Mined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"penalty","type":"uint256"},{"indexed":true,"name":"investigator","type":"address"},{"indexed":false,"name":"reward","type":"uint256"}],"name":"Slashed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"reStake","type":"bool"}],"name":"ReStakeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"lockUntilPeriod","type":"uint16"}],"name":"ReStakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":true,"name":"worker","type":"address"},{"indexed":true,"name":"startPeriod","type":"uint16"}],"name":"WorkerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"staker","type":"address"},{"indexed":false,"name":"measureWork","type":"bool"}],"name":"WorkMeasurementSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burnt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"reservedReward","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0xD37d65e1a27839C98B784fcBfC7A32cd6E7cE42F",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["PolicyManager","v2.1.1","0x0cf492bcA7EbdC44BC288eF0bc9A48CD573D8EA7",[{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"},{"name":"_signature","type":"bytes"}],"name":"revoke","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentPeriod","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"nodes","outputs":[{"name":"reward","type":"uint256"},{"name":"rewardRate","type":"uint256"},{"name":"lastMinedPeriod","type":"uint16"},{"name":"minRewardRate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_minRewardRate","type":"uint256"}],"name":"setMinRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secondsPerPeriod","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"withdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"getPolicyOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DEFAULT_REWARD_DELTA","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"refund","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"getArrangementsLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes16"}],"name":"policies","outputs":[{"name":"sponsor","type":"address"},{"name":"owner","type":"address"},{"name":"rewardRate","type":"uint256"},{"name":"startTimestamp","type":"uint64"},{"name":"endTimestamp","type":"uint64"},{"name":"disabled","type":"bool"},{"name":"reservedSlot1","type":"uint256"},{"name":"reservedSlot2","type":"uint256"},{"name":"reservedSlot3","type":"uint256"},{"name":"reservedSlot4","type":"uint256"},{"name":"reservedSlot5","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_policyOwner","type":"address"},{"name":"_endTimestamp","type":"uint64"},{"name":"_nodes","type":"address[]"}],"name":"createPolicy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"revokeArrangement","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"revokePolicy","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"calculateRefundValue","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"setDefaultRewardDelta","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"updateReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_node","type":"address"}],"name":"getRevocationHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"},{"name":"_index","type":"uint256"}],"name":"getArrangementInfo","outputs":[{"name":"node","type":"address"},{"name":"indexOfDowntimePeriods","type":"uint256"},{"name":"lastRefundedPeriod","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_policyId","type":"bytes16"}],"name":"calculateRefundValue","outputs":[{"name":"refundValue","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_node","type":"address"},{"name":"_period","type":"uint16"}],"name":"getNodeRewardDelta","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_escrow","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sponsor","type":"address"},{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"rewardRate","type":"uint256"},{"indexed":false,"name":"startTimestamp","type":"uint64"},{"indexed":false,"name":"endTimestamp","type":"uint64"},{"indexed":false,"name":"numberOfNodes","type":"uint256"}],"name":"PolicyCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"PolicyRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":true,"name":"node","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ArrangementRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"address"},{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":true,"name":"node","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"RefundForArrangement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"policyId","type":"bytes16"},{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"RefundForPolicy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0x2d79AD3e961b78906a24294195d394AD23791bE4",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Adjudicator","v1.1.1","0x04ffc84878431a75721d8c9035D653e7A0A323a4",[{"constant":false,"inputs":[{"name":"_capsuleBytes","type":"bytes"},{"name":"_cFragBytes","type":"bytes"},{"name":"_cFragSignature","type":"bytes"},{"name":"_taskSignature","type":"bytes"},{"name":"_requesterPublicKey","type":"bytes"},{"name":"_workerPublicKey","type":"bytes"},{"name":"_workerIdentityEvidence","type":"bytes"},{"name":"_preComputedData","type":"bytes"}],"name":"evaluateCFrag","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"penaltyHistoryCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"basePenalty","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hashAlgorithm","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"penaltyHistory","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"evaluatedCFrags","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"percentagePenaltyCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardCoefficient","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_escrow","type":"address"},{"name":"_hashAlgorithm","type":"uint8"},{"name":"_basePenalty","type":"uint256"},{"name":"_penaltyHistoryCoefficient","type":"uint256"},{"name":"_percentagePenaltyCoefficient","type":"uint256"},{"name":"_rewardCoefficient","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"evaluationHash","type":"bytes32"},{"indexed":true,"name":"investigator","type":"address"},{"indexed":false,"name":"correctness","type":"bool"}],"name":"CFragEvaluated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"evaluationHash","type":"bytes32"},{"indexed":true,"name":"worker","type":"address"},{"indexed":true,"name":"staker","type":"address"}],"name":"IncorrectCFragVerdict","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["Dispatcher","v0.0.0","0xe43Cbe003523e025ebA8c721370dAf25De2a45Da",[{"constant":true,"inputs":[],"name":"previousTarget","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_testTarget","type":"address"}],"name":"verifyState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isUpgrade","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"}],"name":"finishUpgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"rollback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"owner","type":"address"}],"name":"RolledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"testTarget","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"StateVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"sender","type":"address"}],"name":"UpgradeFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]],["StakingInterface","v1.2.1","0xefAc8982acBF7A8764Ee076A56437E77926FC3a5",[{"constant":false,"inputs":[{"name":"_reStake","type":"bool"}],"name":"setReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"withdrawPolicyReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_minRewardRate","type":"uint256"}],"name":"setMinRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"depositAsStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"lock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"withdrawAsStaker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"policyManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"prolongStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_worker","type":"address"}],"name":"setWorker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"},{"name":"_newValue","type":"uint256"},{"name":"_periods","type":"uint16"}],"name":"divideStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_lockReStakeUntilPeriod","type":"uint16"}],"name":"lockReStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_escrow","type":"address"},{"name":"_policyManager","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"DepositedAsStaker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"WithdrawnAsStaker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"newValue","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Divided","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"}],"name":"Mined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"PolicyRewardWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"MinRewardRateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"reStake","type":"bool"}],"name":"ReStakeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"lockUntilPeriod","type":"uint16"}],"name":"ReStakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"worker","type":"address"}],"name":"WorkerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"sender","type":"address"},{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"periods","type":"uint16"}],"name":"Prolonged","type":"event"}]],["StakingInterfaceRouter","v0.0.0","0xBD75D6B6d137276bcCe651c45e064e796ae26C3A",[{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_secret","type":"bytes"},{"name":"_newSecretHash","type":"bytes32"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"secretHash","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_target","type":"address"},{"name":"_newSecretHash","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]]] \ No newline at end of file diff --git a/nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json b/nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json deleted file mode 100644 index 7ce056b57..000000000 --- a/nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json +++ /dev/null @@ -1 +0,0 @@ -[["NuCypherToken", "0x894a30aec251c7A38C868e831137514a27C25504", [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "to", "type": "address"}, {"name": "value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_totalSupply", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]], ["StakingEscrow", "0x3A428c38fEB4893E956B578aCdfC71C62e73cd90", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllLockedTokens", "outputs": [{"name": "lockedTokens", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_stakers", "type": "address[]"}, {"name": "_values", "type": "uint256[]"}, {"name": "_periods", "type": "uint16[]"}], "name": "preDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_points", "type": "uint256[]"}, {"name": "_periods", "type": "uint16"}], "name": "sample", "outputs": [{"name": "result", "type": "address[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xBc6297c0781C25A9Bc44eEe22181C98a30DC0229", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "0x9f6FA7609516777090ad5cAF06892080fef4Fd4e", [{"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "client", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "firstPartialReward", "type": "uint256"}, {"name": "startPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "disabled", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_numberOfPeriods", "type": "uint16"}, {"name": "_firstPartialReward", "type": "uint256"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xa8D1Ddd01c42DDC1876D191FE20aBdbd0051f39b", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Adjudicator", "0x9B262fee7235A9b34C8ae260078DB15d9A4E4d6F", [{"constant": false, "inputs": [{"name": "_capsuleBytes", "type": "bytes"}, {"name": "_cFragBytes", "type": "bytes"}, {"name": "_cFragSignature", "type": "bytes"}, {"name": "_taskSignature", "type": "bytes"}, {"name": "_requesterPublicKey", "type": "bytes"}, {"name": "_workerPublicKey", "type": "bytes"}, {"name": "_workerIdentityEvidence", "type": "bytes"}, {"name": "_preComputedData", "type": "bytes"}], "name": "evaluateCFrag", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "penaltyHistoryCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "basePenalty", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "hashAlgorithm", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "penaltyHistory", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes32"}], "name": "evaluatedCFrags", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "percentagePenaltyCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}, {"name": "_hashAlgorithm", "type": "uint8"}, {"name": "_basePenalty", "type": "uint256"}, {"name": "_penaltyHistoryCoefficient", "type": "uint256"}, {"name": "_percentagePenaltyCoefficient", "type": "uint256"}, {"name": "_rewardCoefficient", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "correctness", "type": "bool"}], "name": "CFragEvaluated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "evaluationHash", "type": "bytes32"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "staker", "type": "address"}], "name": "IncorrectCFragVerdict", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["Dispatcher", "0xBEb55274Dd2DD8982821B7019d362B5a7039920D", [{"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "rollback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "Upgraded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "owner", "type": "address"}], "name": "RolledBack", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x7E8B2476cc4942fbf0BF872d4A3Dad256527B4Bf", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllLockedTokens", "outputs": [{"name": "lockedTokens", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_points", "type": "uint256[]"}, {"name": "_periods", "type": "uint16"}], "name": "sample", "outputs": [{"name": "result", "type": "address[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0xEC5B3B0b59B84a517E79A00c3062A63462Da5ECC", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}], "name": "getAllActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingInterface", "0x24eeaF95C9b0E2043A8C2D65FeE9660dbAf34D0B", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdrawPolicyReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "depositAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawAsStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_escrow", "type": "address"}, {"name": "_policyManager", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "DepositedAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "WithdrawnAsStaker", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRewardWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "MinRewardRateSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "worker", "type": "address"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "index", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Prolonged", "type": "event"}]], ["StakingInterfaceRouter", "0x446526854b0243697097e7D0b1922fA023B8e31B", [{"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}, {"name": "_secret", "type": "bytes"}, {"name": "_newSecretHash", "type": "bytes32"}], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_target", "type": "address"}, {"name": "_newSecretHash", "type": "bytes32"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x630064d27ebf15EcecaCe993369b6FF11Ed0e328", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0xe5f3a897268b1d9156b8fbb5f81D2Ad0945b77b4", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["StakingEscrow", "0x9BCfd8feA1D97b61093679f82f8cdf841f521535", [{"constant": false, "inputs": [{"name": "_reStake", "type": "bool"}], "name": "setReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getSubStakesLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentMintingPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getAllTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "workLock", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_SUB_STAKES", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adjudicator", "type": "address"}], "name": "setAdjudicator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "minLockedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_workLock", "type": "address"}], "name": "setWorkLock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getLastActivePeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "findIndexOfPastDowntime", "outputs": [{"name": "index", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_periods", "type": "uint16"}, {"name": "_startIndex", "type": "uint256"}, {"name": "_maxStakers", "type": "uint256"}], "name": "getActiveStakers", "outputs": [{"name": "allLockedTokens", "type": "uint256"}, {"name": "activeStakers", "type": "uint256[2][]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_measureWork", "type": "bool"}], "name": "setWorkMeasurement", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getLastPeriodOfSubStake", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "stakerInfo", "outputs": [{"name": "value", "type": "uint256"}, {"name": "confirmedPeriod1", "type": "uint16"}, {"name": "confirmedPeriod2", "type": "uint16"}, {"name": "reStake", "type": "bool"}, {"name": "lockReStakeUntilPeriod", "type": "uint16"}, {"name": "worker", "type": "address"}, {"name": "workerStartPeriod", "type": "uint16"}, {"name": "lastActivePeriod", "type": "uint16"}, {"name": "measureWork", "type": "bool"}, {"name": "completedWork", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getSubStakeInfo", "outputs": [{"name": "firstPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "periods", "type": "uint16"}, {"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "adjudicator", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokensInPast", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getReservedReward", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "workerToStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "confirmActivity", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_periods", "type": "uint16"}], "name": "getLockedTokens", "outputs": [{"name": "lockedValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "lock", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "miningCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minAllowableLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_tokenContract", "type": "address"}, {"name": "", "type": "bytes"}], "name": "receiveApproval", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_index", "type": "uint256"}], "name": "getPastDowntime", "outputs": [{"name": "startPeriod", "type": "uint16"}, {"name": "endPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getPastDowntimeLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getWorkerFromStaker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_penalty", "type": "uint256"}, {"name": "_investigator", "type": "address"}, {"name": "_reward", "type": "uint256"}], "name": "slashStaker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getStakersLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedPeriodsCoefficient", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "policyManager", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyManager", "type": "address"}], "name": "setPolicyManager", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "EMPTY_CONFIRMED_PERIOD", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply1", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "prolongStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_worker", "type": "address"}], "name": "setWorker", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "isReStakeLocked", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_worker", "type": "address"}], "name": "getStakerFromWorker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "minWorkerPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_staker", "type": "address"}], "name": "getCompletedWork", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_index", "type": "uint256"}, {"name": "_newValue", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "divideStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_staker", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_periods", "type": "uint16"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_lockReStakeUntilPeriod", "type": "uint16"}], "name": "lockReStake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint16"}], "name": "lockedPerPeriod", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "currentSupply2", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "stakers", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "rewardedPeriods", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_token", "type": "address"}, {"name": "_hoursPerPeriod", "type": "uint32"}, {"name": "_miningCoefficient", "type": "uint256"}, {"name": "_lockedPeriodsCoefficient", "type": "uint256"}, {"name": "_rewardedPeriods", "type": "uint16"}, {"name": "_minLockedPeriods", "type": "uint16"}, {"name": "_minAllowableLockedTokens", "type": "uint256"}, {"name": "_maxAllowableLockedTokens", "type": "uint256"}, {"name": "_minWorkerPeriods", "type": "uint16"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Deposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "firstPeriod", "type": "uint16"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Locked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "oldValue", "type": "uint256"}, {"indexed": false, "name": "lastPeriod", "type": "uint16"}, {"indexed": false, "name": "newValue", "type": "uint256"}, {"indexed": false, "name": "periods", "type": "uint16"}], "name": "Divided", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ActivityConfirmed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "period", "type": "uint16"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Mined", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "penalty", "type": "uint256"}, {"indexed": true, "name": "investigator", "type": "address"}, {"indexed": false, "name": "reward", "type": "uint256"}], "name": "Slashed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "reStake", "type": "bool"}], "name": "ReStakeSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "lockUntilPeriod", "type": "uint16"}], "name": "ReStakeLocked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": true, "name": "worker", "type": "address"}, {"indexed": true, "name": "startPeriod", "type": "uint16"}], "name": "WorkerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "staker", "type": "address"}, {"indexed": false, "name": "measureWork", "type": "bool"}], "name": "WorkMeasurementSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "reservedReward", "type": "uint256"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]], ["PolicyManager", "0xa290f991A4EcBd3B89124A4E1fA0F8555D9389db", [{"constant": true, "inputs": [], "name": "getCurrentPeriod", "outputs": [{"name": "", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "nodes", "outputs": [{"name": "reward", "type": "uint256"}, {"name": "rewardRate", "type": "uint256"}, {"name": "lastMinedPeriod", "type": "uint16"}, {"name": "minRewardRate", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_minRewardRate", "type": "uint256"}], "name": "setMinRewardRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secondsPerPeriod", "outputs": [{"name": "", "type": "uint32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "previousTarget", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_recipient", "type": "address"}], "name": "withdraw", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "refund", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "getArrangementsLength", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "bytes16"}], "name": "policies", "outputs": [{"name": "client", "type": "address"}, {"name": "rewardRate", "type": "uint256"}, {"name": "firstPartialReward", "type": "uint256"}, {"name": "startPeriod", "type": "uint16"}, {"name": "lastPeriod", "type": "uint16"}, {"name": "disabled", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "register", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_numberOfPeriods", "type": "uint16"}, {"name": "_firstPartialReward", "type": "uint256"}, {"name": "_nodes", "type": "address[]"}], "name": "createPolicy", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "revokeArrangement", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "revokePolicy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_node", "type": "address"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_testTarget", "type": "address"}], "name": "verifyState", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "updateReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "secretHash", "outputs": [{"name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}, {"name": "_index", "type": "uint256"}], "name": "getArrangementInfo", "outputs": [{"name": "node", "type": "address"}, {"name": "indexOfDowntimePeriods", "type": "uint256"}, {"name": "lastRefundedPeriod", "type": "uint16"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "refund", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "escrow", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isUpgrade", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "_policyId", "type": "bytes16"}], "name": "calculateRefundValue", "outputs": [{"name": "refundValue", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "finishUpgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_node", "type": "address"}, {"name": "_period", "type": "uint16"}], "name": "getNodeRewardDelta", "outputs": [{"name": "", "type": "int256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_escrow", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}], "name": "PolicyCreated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "PolicyRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ArrangementRevoked", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "node", "type": "address"}, {"indexed": true, "name": "recipient", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Withdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": true, "name": "node", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForArrangement", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "policyId", "type": "bytes16"}, {"indexed": true, "name": "client", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "RefundForPolicy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "testTarget", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "StateVerified", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "target", "type": "address"}, {"indexed": false, "name": "sender", "type": "address"}], "name": "UpgradeFinished", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]]] \ No newline at end of file diff --git a/nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json b/nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json deleted file mode 100644 index f98aec9be..000000000 --- a/nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json +++ /dev/null @@ -1 +0,0 @@ -{"BENEFICIARY_ADDRESS": ["ALLOCATION_CONTRACT_ADDRESS", [{"constant": true, "inputs": [], "name": "linker", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "withdrawTokens", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getLockedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}, {"name": "_duration", "type": "uint256"}], "name": "initialDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "endLockTimestamp", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "lockedValue", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "withdrawETH", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "token", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_linker", "type": "address"}, {"name": "_token", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "sender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "duration", "type": "uint256"}], "name": "TokensDeposited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "TokensWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "ETHWithdrawn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]]} \ No newline at end of file diff --git a/nucypher/blockchain/eth/registry.py b/nucypher/blockchain/eth/registry.py index f4e1c596a..8d72ba9f7 100644 --- a/nucypher/blockchain/eth/registry.py +++ b/nucypher/blockchain/eth/registry.py @@ -29,7 +29,7 @@ from constant_sorrow.constants import REGISTRY_COMMITTED, NO_REGISTRY_SOURCE from twisted.logger import Logger from nucypher.blockchain.eth.networks import NetworksInventory -from nucypher.config.constants import DEFAULT_CONFIG_ROOT +from nucypher.config.constants import BASE_DIR, DEFAULT_CONFIG_ROOT from nucypher.blockchain.eth.constants import PREALLOCATION_ESCROW_CONTRACT_NAME @@ -97,14 +97,13 @@ class GithubRegistrySource(CanonicalRegistrySource): class InPackageRegistrySource(CanonicalRegistrySource): - _HERE = os.path.abspath(os.path.dirname(__file__)) - _BASE_DIR = os.path.join(_HERE, "contract_registry") + _REGISTRY_DIR = os.path.join(BASE_DIR, "registries") name = "In-Package Registry Source" is_primary = False def get_publication_endpoint(self) -> str: - filepath = str(os.path.join(self._BASE_DIR, self.network, self.registry_name)) + filepath = str(os.path.join(self._REGISTRY_DIR, self.network, self.registry_name)) return filepath def fetch_latest_publication(self) -> Union[str, bytes]: From 3f23d3958cb2a2912a65dedc51af0c4c72b7cfb0 Mon Sep 17 00:00:00 2001 From: tuxxy Date: Sat, 15 Feb 2020 11:18:29 +0100 Subject: [PATCH 4/5] Iterate from @dnunez feedback --- .../blockchain/eth/contract_registry}/README.md | 0 .../blockchain/eth/contract_registry}/cassandra/README.md | 0 .../contract_registry}/cassandra/contract_registry.json | 0 .../blockchain/eth/contract_registry}/frances/README.md | 0 .../eth/contract_registry}/frances/contract_registry.json | 0 .../blockchain/eth/contract_registry}/mainnet/README.md | 0 .../blockchain/eth/contract_registry}/miranda/README.md | 0 .../eth/contract_registry}/miranda/contract_registry.json | 0 .../miranda/individual_allocation_ABI.json | 0 nucypher/blockchain/eth/registry.py | 5 +++-- setup.py | 7 ++++--- 11 files changed, 7 insertions(+), 5 deletions(-) rename {registries => nucypher/blockchain/eth/contract_registry}/README.md (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/cassandra/README.md (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/cassandra/contract_registry.json (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/frances/README.md (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/frances/contract_registry.json (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/mainnet/README.md (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/miranda/README.md (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/miranda/contract_registry.json (100%) rename {registries => nucypher/blockchain/eth/contract_registry}/miranda/individual_allocation_ABI.json (100%) diff --git a/registries/README.md b/nucypher/blockchain/eth/contract_registry/README.md similarity index 100% rename from registries/README.md rename to nucypher/blockchain/eth/contract_registry/README.md diff --git a/registries/cassandra/README.md b/nucypher/blockchain/eth/contract_registry/cassandra/README.md similarity index 100% rename from registries/cassandra/README.md rename to nucypher/blockchain/eth/contract_registry/cassandra/README.md diff --git a/registries/cassandra/contract_registry.json b/nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json similarity index 100% rename from registries/cassandra/contract_registry.json rename to nucypher/blockchain/eth/contract_registry/cassandra/contract_registry.json diff --git a/registries/frances/README.md b/nucypher/blockchain/eth/contract_registry/frances/README.md similarity index 100% rename from registries/frances/README.md rename to nucypher/blockchain/eth/contract_registry/frances/README.md diff --git a/registries/frances/contract_registry.json b/nucypher/blockchain/eth/contract_registry/frances/contract_registry.json similarity index 100% rename from registries/frances/contract_registry.json rename to nucypher/blockchain/eth/contract_registry/frances/contract_registry.json diff --git a/registries/mainnet/README.md b/nucypher/blockchain/eth/contract_registry/mainnet/README.md similarity index 100% rename from registries/mainnet/README.md rename to nucypher/blockchain/eth/contract_registry/mainnet/README.md diff --git a/registries/miranda/README.md b/nucypher/blockchain/eth/contract_registry/miranda/README.md similarity index 100% rename from registries/miranda/README.md rename to nucypher/blockchain/eth/contract_registry/miranda/README.md diff --git a/registries/miranda/contract_registry.json b/nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json similarity index 100% rename from registries/miranda/contract_registry.json rename to nucypher/blockchain/eth/contract_registry/miranda/contract_registry.json diff --git a/registries/miranda/individual_allocation_ABI.json b/nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json similarity index 100% rename from registries/miranda/individual_allocation_ABI.json rename to nucypher/blockchain/eth/contract_registry/miranda/individual_allocation_ABI.json diff --git a/nucypher/blockchain/eth/registry.py b/nucypher/blockchain/eth/registry.py index 8d72ba9f7..430b4291d 100644 --- a/nucypher/blockchain/eth/registry.py +++ b/nucypher/blockchain/eth/registry.py @@ -74,7 +74,7 @@ class GithubRegistrySource(CanonicalRegistrySource): is_primary = True def get_publication_endpoint(self) -> str: - url = f'{self._BASE_URL}/master/registries/{self.network}/{self.registry_name}' + url = f'{self._BASE_URL}/master/nucypher/blockchain/eth/contract_registry/{self.network}/{self.registry_name}' return url def fetch_latest_publication(self) -> Union[str, bytes]: @@ -97,7 +97,8 @@ class GithubRegistrySource(CanonicalRegistrySource): class InPackageRegistrySource(CanonicalRegistrySource): - _REGISTRY_DIR = os.path.join(BASE_DIR, "registries") + _HERE = os.path.abspath(os.path.dirname(__file__)) + _REGISTRY_DIR = os.path.join(_HERE, "contract_registry") name = "In-Package Registry Source" is_primary = False diff --git a/setup.py b/setup.py index dfe2c6c79..3dbc973b9 100644 --- a/setup.py +++ b/setup.py @@ -106,11 +106,12 @@ EXTRAS_REQUIRE = {'development': TESTS_REQUIRE, 'docs': DOCS_REQUIRE, 'benchmark': BENCHMARKS_REQUIRE} -PACKAGE_DATA = ['cli/templates', - 'network/templates/basic_status.j2', +PACKAGE_DATA = ['network/templates/basic_status.j2', 'network/nicknames/web_colors.json', 'blockchain/eth/contract_registry/mainnet/*', - 'blockchain/eth/contract_registry/goerli/*', + 'blockchain/eth/contract_registry/cassandra/*', + 'blockchain/eth/contract_registry/frances/*', + 'blockchain/eth/contract_registry/miranda/*', 'blockchain/eth/sol/source/contracts/*', 'blockchain/eth/sol/source/contracts/lib/*', 'blockchain/eth/sol/source/contracts/proxy/*', From 72c8bef88546e6a6a5c6e3186981bd7b6090e9ac Mon Sep 17 00:00:00 2001 From: Tux Date: Mon, 17 Feb 2020 08:35:21 +0100 Subject: [PATCH 5/5] Remove unused import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: David Núñez --- nucypher/blockchain/eth/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher/blockchain/eth/registry.py b/nucypher/blockchain/eth/registry.py index 430b4291d..7e9b96d38 100644 --- a/nucypher/blockchain/eth/registry.py +++ b/nucypher/blockchain/eth/registry.py @@ -29,7 +29,7 @@ from constant_sorrow.constants import REGISTRY_COMMITTED, NO_REGISTRY_SOURCE from twisted.logger import Logger from nucypher.blockchain.eth.networks import NetworksInventory -from nucypher.config.constants import BASE_DIR, DEFAULT_CONFIG_ROOT +from nucypher.config.constants import DEFAULT_CONFIG_ROOT from nucypher.blockchain.eth.constants import PREALLOCATION_ESCROW_CONTRACT_NAME