// SPDX-License-Identifier: AGPL-3.0-only /** * ICommunityPool.sol - SKALE Interchain Messaging Agent * Copyright (C) 2021-Present SKALE Labs * @author Dmytro Stebaiev * * SKALE IMA 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 IMA 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 IMA. If not, see . */ pragma solidity >=0.8.19 <0.9.0; import "@skalenetwork/skale-manager-interfaces/IContractManager.sol"; import "./ILinker.sol"; import "./IMessageProxyForMainnet.sol"; import "./ITwin.sol"; interface ICommunityPool is ITwin { function initialize( IContractManager contractManagerOfSkaleManagerValue, ILinker linker, IMessageProxyForMainnet messageProxyValue ) external; function refundGasByUser( SchainHash schainHash, address payable node, address user, uint256 gas ) external returns (uint256); function rechargeUserWallet(string calldata schainName, address user) external payable; function withdrawFunds(string calldata schainName, uint256 amount) external; function setMinTransactionGas(uint256 newMinTransactionGas) external; function setMultiplier(uint256 newMultiplierNumerator, uint256 newMultiplierDivider) external; function refundGasBySchainWallet( SchainHash schainHash, address payable node, uint256 gas ) external returns (bool); function getBalance(address user, string calldata schainName) external view returns (uint256); function checkUserBalance(SchainHash schainHash, address receiver) external view returns (bool); function getRecommendedRechargeAmount(SchainHash schainHash, address receiver) external view returns (uint256); }