diff --git a/contracts/IConstantsHolder.sol b/contracts/IConstantsHolder.sol index b719848..e8ea696 100644 --- a/contracts/IConstantsHolder.sol +++ b/contracts/IConstantsHolder.sol @@ -46,6 +46,16 @@ interface IConstantsHolder { function setComplaintTimeLimit(uint timeLimit) external; function setMinNodeBalance(uint newMinNodeBalance) external; function reinitialize() external; + // Corresponds to the public field + // solhint-disable func-name-mixedcase + // slither-disable-start naming-convention + function BOUNTY_LOCKUP_MONTHS() external view returns (uint256); + function NODE_DEPOSIT() external view returns (uint256); + function SECONDS_TO_YEAR() external view returns (uint32); + function SMALL_DIVISOR() external view returns (uint8); + function TOTAL_SPACE_ON_NODE() external view returns (uint8); + // solhint-enable func-name-mixedcase + // slither-disable-end naming-convention function msr() external view returns (uint); function launchTimestamp() external view returns (uint); function rotationDelay() external view returns (uint); diff --git a/contracts/IPaymasterController.sol b/contracts/IPaymasterController.sol new file mode 100644 index 0000000..d3d0ce0 --- /dev/null +++ b/contracts/IPaymasterController.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: AGPL-3.0-only + +/* + IPaymasterController.sol - SKALE Manager + Copyright (C) 2018-Present SKALE Labs + @author Artem Payvin + + SKALE Manager is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + SKALE Manager is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with SKALE Manager. If not, see . +*/ + +pragma solidity >=0.6.10 <0.9.0; + +interface IPaymasterController { + function addSchain(string calldata name) external; + function addValidator(uint256 validatorId, address validatorAddress) external; + function removeSchain(bytes32 schainHash) external; + function setImaAddress(address imaAddress) external; + function setMarionetteAddress(address payable marionetteAddress) external; + function setNodesAmount(uint256 validatorId, uint256 nodesAmount) external; + function setPaymasterAddress(address paymasterAddress) external; + function setPaymasterChainHash(bytes32 chainHash) external; + function setValidatorAddress(uint256 validatorId, address validatorAddress) external; +} diff --git a/package.json b/package.json index 33fd6f5..8bf52a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@skalenetwork/skale-manager-interfaces", - "version": "3.1.0", + "version": "3.2.0", "description": "Definitions of interfaces needed to integrate with skale-manager smart contracts", "main": "index.js", "repository": "git@github.com:skalenetwork/skale-manager-interfaces.git", diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 279067a..6bdff3f 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1 +1 @@ -slither-analyzer==0.8.0 +slither-analyzer==0.10.3