View sol-wallet
This file contains 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
contract SimpleWallet { | |
// address is the owner | |
address owner; | |
struct WithdrawlStruct { | |
address to; | |
uint amount; | |
} |
View multi-send-smart-contract
This file contains 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
pragma solidity >=0.7.0 <0.9.0; | |
contract MultiSend { | |
// to save the owner of the contract in construction | |
address private owner; | |
// to save the amount of ethers in the smart-contract | |
uint total_value; |
View FractionalizedNFT.sol
This file contains 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: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.6.0/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC721/IERC721.sol"; | |
import "@openzeppelin/contracts@4.6.0/access/Ownable.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC20/extensions/draft-ERC20Permit.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC721/utils/ERC721Holder.sol"; | |
contract FractionalizedNFT is ERC20, Ownable, ERC20Permit, ERC721Holder { |
View FractionalizedNFT.sol
This file contains 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: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.6.0/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC721/IERC721.sol"; | |
import "@openzeppelin/contracts@4.6.0/access/Ownable.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC20/extensions/draft-ERC20Permit.sol"; | |
import "@openzeppelin/contracts@4.6.0/token/ERC721/utils/ERC721Holder.sol"; | |
contract FractionalizedNFT is ERC20, Ownable, ERC20Permit, ERC721Holder { |