Skip to content

Commit

Permalink
Merge pull request #233 from skalenetwork/release-1.5.0
Browse files Browse the repository at this point in the history
Release 1.5.0
  • Loading branch information
DimaStebaev authored Jun 22, 2023
2 parents ab29e9d + ae48b44 commit 4e41ff8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
target-branch: "develop"
schedule:
interval: "weekly"

- package-ecosystem: "pip"
directory: "/scripts/"
target-branch: "develop"
schedule:
interval: "weekly"
1 change: 1 addition & 0 deletions contracts/IMessageProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ interface IMessageProxy {
function getOutgoingMessagesCounter(string calldata targetSchainName) external view returns (uint256);
function getIncomingMessagesCounter(string calldata fromSchainName) external view returns (uint256);
function isConnectedChain(string memory schainName) external view returns (bool);
function getLastOutgoingMessageBlockId(string memory targetSchainName) external view returns (uint);
}
12 changes: 12 additions & 0 deletions contracts/mainnet/IMessageProxyForMainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ interface IMessageProxyForMainnet is IMessageProxy {
function setNewMessageGasCost(uint256 newMessageGasCost) external;
function pause(string calldata schainName) external;
function resume(string calldata schainName) external;
function addReimbursedContract(string memory schainName, address reimbursedContract) external;
function removeReimbursedContract(string memory schainName, address reimbursedContract) external;
function messageInProgress() external view returns (bool);
function isPaused(bytes32 schainHash) external view returns (bool);
function isReimbursedContract(bytes32 schainHash, address contractAddress) external view returns (bool);
function getReimbursedContractsLength(bytes32 schainHash) external view returns (uint256);
function getReimbursedContractsRange(
bytes32 schainHash,
uint256 from,
uint256 to
)
external
view
returns (address[] memory contractsInRange);
}
1 change: 1 addition & 0 deletions contracts/mainnet/ITwin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ interface ITwin is ISkaleManagerClient {
function addSchainContract(string calldata schainName, address contractReceiver) external;
function removeSchainContract(string calldata schainName) external;
function hasSchainContract(string calldata schainName) external view returns (bool);
function getSchainContract(bytes32 schainHash) external view returns (address);
}
4 changes: 2 additions & 2 deletions contracts/schain/ICommunityLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface ICommunityLocker is IMessageReceiver {
ITokenManagerLinker newTokenManagerLinker,
address newCommunityPool
) external;
function checkAllowedToSendMessage(address receiver) external;
function setTimeLimitPerMessage(uint newTimeLimitPerMessage) external;
function checkAllowedToSendMessage(bytes32 chainHash, address receiver) external;
function setTimeLimitPerMessage(string memory chainName, uint newTimeLimitPerMessage) external;
function setGasPrice(uint gasPrice, uint timestamp, IMessageProxyForSchain.Signature memory signature) external;
}
5 changes: 4 additions & 1 deletion contracts/schain/IMessageProxyForSchain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pragma solidity >=0.6.10 <0.9.0;

import "../IMessageProxy.sol";
import "./IKeyStorage.sol";
import "./ITokenManagerLinker.sol";

interface IMessageProxyForSchain is IMessageProxy {
struct OutgoingMessageData {
Expand All @@ -34,7 +35,9 @@ interface IMessageProxyForSchain is IMessageProxy {
}

function initialize(IKeyStorage blsKeyStorage, string memory schainName) external;
function setMinimumReceiverBalance(uint256 balance) external;
function topUpReceiverBalance(address payable receiver) external;
function messageInProgress() external view returns (bool);
function verifyOutgoingMessageData(OutgoingMessageData memory message) external view returns (bool);
function verifySignature(bytes32 hashedMessage, Signature memory signature) external view returns (bool);
function messageInProgress() external view returns (bool);
}
6 changes: 3 additions & 3 deletions contracts/schain/ITokenManagerLinker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import "./ITokenManager.sol";


interface ITokenManagerLinker {
function connectSchain(string calldata schainName) external;
function disconnectSchain(string calldata schainName) external;
function initialize(IMessageProxyForSchain newMessageProxyAddress, address linker) external;
function registerTokenManager(ITokenManager newTokenManager) external;
function removeTokenManager(ITokenManager tokenManagerAddress) external;
function connectSchain(string calldata schainName) external;
function disconnectSchain(string calldata schainName) external;
function hasTokenManager(ITokenManager tokenManager) external view returns (bool);
function hasSchain(string calldata schainName) external view returns (bool connected);
function hasTokenManager(address tokenManager) external view returns (bool);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skalenetwork/ima-interfaces",
"version": "1.1.0",
"version": "2.0.0",
"description": "Definitions of interfaces needed to integrate with IMA smart contracts",
"main": "index.js",
"repository": "git@github.com:skalenetwork/ima-interfaces.git",
Expand Down

0 comments on commit 4e41ff8

Please sign in to comment.