This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.0; | |
| import './KaliDAOtoken.sol'; | |
| import './KaliDAOnftHelper.sol'; | |
| /// @notice Simple gas-optimized DAO core module. | |
| contract KaliDAO is KaliDAOtoken, KaliDAOnftHelper { | |
| /*/////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.0; | |
| /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation with COMP-style governance, | |
| /// @author Adapted from RariCapital, https://github.com/Rari-Capital/solmate/blob/main/src/erc20/ERC20.sol, | |
| /// License-Identifier: AGPL-3.0-only. | |
| contract NomiToken { | |
| /*/////////////////////////////////////////////////////////////// | |
| EVENTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.0; | |
| /// @notice Modern and gas efficient ERC-721 + ERC-20/EIP-2612-like implementation. | |
| contract NFTclone { | |
| /*/////////////////////////////////////////////////////////////// | |
| EVENTS | |
| //////////////////////////////////////////////////////////////*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.0; | |
| /// @notice Standard ERC-20 token interface with EIP-2612 {permit} extension. | |
| interface IERC20 { | |
| /// @dev ERC-20: | |
| function allowance(address owner, address spender) external view returns (uint256); | |
| function balanceOf(address account) external view returns (uint256); | |
| function totalSupply() external view returns (uint256); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: AGPL-3.0-only | |
| pragma solidity >=0.8.0; | |
| /// @notice Based NFT implementation. | |
| abstract contract NFT { | |
| /*/////////////////////////////////////////////////////////////// | |
| EVENTS | |
| //////////////////////////////////////////////////////////////*/ | |
| event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.4; | |
| /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. | |
| /// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20.sol) | |
| /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. | |
| library SafeTransferLib { | |
| /*/////////////////////////////////////////////////////////////// | |
| ETH OPERATIONS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.4; | |
| /// @notice Simple gas-optimized multi-signature contract. | |
| contract Multisig { | |
| event Propose(address indexed proposer, uint256 indexed proposal); | |
| event Sign(address indexed signer, uint256 indexed proposal); | |
| event Execute(uint256 indexed proposal); | |
| error NotSigner(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| pragma solidity >=0.8.4; | |
| /// @notice Simple gas-optimized multi-signature contract. | |
| contract Multisig { | |
| event Propose(address indexed proposer, uint256 indexed proposal); | |
| event Sign(address indexed signer, uint256 indexed proposal); | |
| event Execute(uint256 indexed proposal); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| error NoExecParity(); | |
| error NoSigParity(); | |
| error NotSigner(); | |
| error SigOutOfOrder(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0-or-later | |
| error NoExecParity(); | |
| error NoSigParity(); | |
| error NotSigner(); | |
| error SigOutOfOrder(); |