{ "contractName": "ColonyNetworkMining", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "auction", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "quantity", "type": "uint256" } ], "name": "AuctionCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "colonyId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "colonyAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" } ], "name": "ColonyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "colony", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "label", "type": "bytes32" } ], "name": "ColonyLabelRegistered", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "resolver", "type": "address" } ], "name": "ColonyNetworkInitialised", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "version", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "resolver", "type": "address" } ], "name": "ColonyVersionAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "extensionId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "version", "type": "uint256" } ], "name": "ExtensionAddedToNetwork", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "extensionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "colony", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "deprecated", "type": "bool" } ], "name": "ExtensionDeprecated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "extensionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "colony", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "version", "type": "uint256" } ], "name": "ExtensionInstalled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "extensionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "colony", "type": "address" } ], "name": "ExtensionUninstalled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "extensionId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "colony", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "version", "type": "uint256" } ], "name": "ExtensionUpgraded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "authority", "type": "address" } ], "name": "LogSetAuthority", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" } ], "name": "LogSetOwner", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "metaColony", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "rootSkillId", "type": "uint256" } ], "name": "MetaColonyCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "miningCycleResolver", "type": "address" } ], "name": "MiningCycleResolverSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "feeInverse", "type": "uint256" } ], "name": "NetworkFeeInverseSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "miner", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tokensLost", "type": "uint256" } ], "name": "ReputationMinerPenalised", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "hash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "nLeaves", "type": "uint256" } ], "name": "ReputationMiningCycleComplete", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "inactiveReputationMiningCycle", "type": "address" } ], "name": "ReputationMiningInitialised", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "newHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "newNLeaves", "type": "uint256" }, { "indexed": false, "internalType": "address[]", "name": "stakers", "type": "address[]" }, { "indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256" } ], "name": "ReputationRootHashSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "skillId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "parentSkillId", "type": "uint256" } ], "name": "SkillAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "tokenLocking", "type": "address" } ], "name": "TokenLockingAddressSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "status", "type": "bool" } ], "name": "TokenWhitelisted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "label", "type": "bytes32" } ], "name": "UserLabelRegistered", "type": "event" }, { "inputs": [], "name": "authority", "outputs": [ { "internalType": "contract DSAuthority", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getChainId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract DSAuthority", "name": "authority_", "type": "address" } ], "name": "setAuthority", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner_", "type": "address" } ], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_reputationMiningCycle", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "int256", "name": "_amount", "type": "int256" }, { "internalType": "uint256", "name": "_skillId", "type": "uint256" }, { "internalType": "address", "name": "_colony", "type": "address" }, { "internalType": "uint128", "name": "_nUpdates", "type": "uint128" }, { "internalType": "uint128", "name": "_nPreviousUpdates", "type": "uint128" } ], "name": "setReplacementReputationUpdateLogEntry", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_reputationMiningCycle", "type": "address" }, { "internalType": "uint256", "name": "_id", "type": "uint256" } ], "name": "getReplacementReputationUpdateLogEntry", "outputs": [ { "components": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "int256", "name": "amount", "type": "int256" }, { "internalType": "uint256", "name": "skillId", "type": "uint256" }, { "internalType": "address", "name": "colony", "type": "address" }, { "internalType": "uint128", "name": "nUpdates", "type": "uint128" }, { "internalType": "uint128", "name": "nPreviousUpdates", "type": "uint128" } ], "internalType": "struct ColonyNetworkDataTypes.ReputationLogEntry", "name": "reputationLogEntry", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_reputationMiningCycle", "type": "address" } ], "name": "getReplacementReputationUpdateLogsExist", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "newHash", "type": "bytes32" }, { "internalType": "uint256", "name": "newNLeaves", "type": "uint256" }, { "internalType": "address[]", "name": "stakers", "type": "address[]" } ], "name": "setReputationRootHash", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "newHash", "type": "bytes32" }, { "internalType": "uint256", "name": "newNLeaves", "type": "uint256" }, { "internalType": "address[]", "name": "stakers", "type": "address[]" }, { "internalType": "uint256", "name": "reward", "type": "uint256" } ], "name": "setReputationRootHash", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "initialiseReputationMining", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "startNextCycle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_active", "type": "bool" } ], "name": "getReputationMiningCycle", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "timeStaked", "type": "uint256" }, { "internalType": "uint256", "name": "submissonIndex", "type": "uint256" } ], "name": "calculateMinerWeight", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_stakers", "type": "address[]" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "punishStakers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_recipient", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "reward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_recipient", "type": "address" } ], "name": "claimMiningReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "stakeForMining", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "unstakeForMining", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" } ], "name": "getMiningStake", "outputs": [ { "components": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "internalType": "struct ColonyNetworkDataTypes.MiningStake", "name": "", "type": "tuple" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "burnUnneededRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "setReputationMiningCycleReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getReputationMiningCycleReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ], "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "events": { "AuctionCreated(address,address,uint256)": { "notice": "Event logged when a new auction is created and started" }, "ColonyAdded(uint256,address,address)": { "notice": "Event logged when a new colony is added" }, "ColonyLabelRegistered(address,bytes32)": { "notice": "Event logged when a \"colony.joincolony.eth\" label is registered" }, "ColonyNetworkInitialised(address)": { "notice": "Event logged when the colony network is intialised. This is only ever emitted once in a network's lifetime" }, "ColonyVersionAdded(uint256,address)": { "notice": "Event logged when a new colony contract version is set" }, "ExtensionAddedToNetwork(bytes32,uint256)": { "notice": "Event logged when a new extension resolver is added to the network" }, "ExtensionDeprecated(bytes32,address,bool)": { "notice": "Event logged when an extension is (un)deprecated in a colony" }, "ExtensionInstalled(bytes32,address,uint256)": { "notice": "Event logged when an extension is installed in a colony" }, "ExtensionUninstalled(bytes32,address)": { "notice": "Event logged when an extension is uninstalled from a colony" }, "ExtensionUpgraded(bytes32,address,uint256)": { "notice": "Event logged when an extension is upgraded in a colony" }, "MetaColonyCreated(address,address,uint256)": { "notice": "Event logged when the MetaColony is created" }, "MiningCycleResolverSet(address)": { "notice": "Event logged when the Colony Network ReputationMiningCycleResolver contract address is set" }, "NetworkFeeInverseSet(uint256)": { "notice": "Event logged when the network fee inverse is set" }, "ReputationMiningCycleComplete(bytes32,uint256)": { "notice": "Event logged when a reputation mining cycle completes" }, "ReputationMiningInitialised(address)": { "notice": "Event logged when the Reputation mining process is initialised" }, "ReputationRootHashSet(bytes32,uint256,address[],uint256)": { "notice": "Event logged when a new reputation root hash is set by the reputation mining process" }, "SkillAdded(uint256,uint256)": { "notice": "Event logged when a new skill is added" }, "TokenLockingAddressSet(address)": { "notice": "Event logged when the Colony Network TokenLocking contract address is set" }, "TokenWhitelisted(address,bool)": { "notice": "Event logged when the payout whitelist is updated" }, "UserLabelRegistered(address,bytes32)": { "notice": "Event logged when a \"user.joincolony.eth\" label is registered" } }, "kind": "user", "methods": {}, "version": 1 } }