Skip to content

Instantly share code, notes, and snippets.

View THRUSTDeltaV's full-sized avatar
🎯
development

DeltaV THRUST THRUSTDeltaV

🎯
development
View GitHub Profile
@shobhitic
shobhitic / FractionalizedNFT.sol
Last active December 21, 2023 22:04
Fractionalize NFT Smart Contract - https://youtu.be/fDRQDP2xW7o
// 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 {
// 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 {
@THRUSTDeltaV
THRUSTDeltaV / sol-wallet
Created September 1, 2022 18:25 — forked from bitgord/sol-wallet
Wallet Smart Contract Using Solidity
contract SimpleWallet {
// address is the owner
address owner;
struct WithdrawlStruct {
address to;
uint amount;
}
@THRUSTDeltaV
THRUSTDeltaV / multi-send-smart-contract
Created August 5, 2022 23:59 — forked from mahdiidarabi/multi-send-smart-contract
this is a smart contract with solidity to implement multi send transactions on ethereum
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;