Skip to content

Commit

Permalink
updat1k
Browse files Browse the repository at this point in the history
  • Loading branch information
peersky committed Nov 2, 2023
1 parent 372be10 commit 65fd262
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 21 deletions.
19 changes: 19 additions & 0 deletions abi/hardhat-diamond-abi/HardhatDiamondABI.sol/BestOfDiamond.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,25 @@
"name": "gameCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
}
],
"name": "canEndTurn",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
19 changes: 19 additions & 0 deletions abi/src/facets/BestOfFacet.sol/BestOfFacet.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,25 @@
"name": "gameCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
}
],
"name": "canEndTurn",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
19 changes: 0 additions & 19 deletions abi/src/vendor/interfaces/IERC173.sol/IERC173.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "owner",
Expand Down
5 changes: 5 additions & 0 deletions src/facets/BestOfFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,9 @@ contract BestOfFacet is IBestOf, IERC1155Receiver, DiamondReentrancyGuard, IERC7
function canStartGame(uint256 gameId) public view returns (bool) {
return gameId.canStart();
}

function canEndTurn(uint256 gameId) public view returns (bool)
{
return gameId.canEndTurn();
}
}
2 changes: 1 addition & 1 deletion src/vendor/facets/OwnershipFacet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
pragma solidity 0.8.20;

import "../libraries/LibDiamond.sol";
import "../interfaces/IERC173.sol";
Expand Down
3 changes: 2 additions & 1 deletion src/vendor/interfaces/IERC173.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pragma solidity ^0.8.4;
/* is ERC165 */
interface IERC173 {
/// @dev This emits when ownership of a contract changes.
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
// Removed deue to duplicate abi generation in 8.20 compiler
// event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

/// @notice Get the address of the owner
/// @return owner_ The address of the owner.
Expand Down

0 comments on commit 65fd262

Please sign in to comment.