Skip to content

Instantly share code, notes, and snippets.

Avatar

DeltaV THRUST THRUSTDeltaV

View GitHub Profile
@THRUSTDeltaV
THRUSTDeltaV / sol-wallet
Created Sep 1, 2022 — forked from bitgord/sol-wallet
Wallet Smart Contract Using Solidity
View sol-wallet
contract SimpleWallet {
// address is the owner
address owner;
struct WithdrawlStruct {
address to;
uint amount;
}
@THRUSTDeltaV
THRUSTDeltaV / multi-send-smart-contract
Created Aug 5, 2022 — forked from mahdiidarabi/multi-send-smart-contract
this is a smart contract with solidity to implement multi send transactions on ethereum
View multi-send-smart-contract
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;
@THRUSTDeltaV
THRUSTDeltaV / MyToken.sol
Created Jun 10, 2022 — forked from shobhitic/MyToken.sol
Merkletree Allowlist / Whitelist for NFT
View MyToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.5.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.5.0/access/Ownable.sol";
import "@openzeppelin/contracts@4.5.0/utils/Counters.sol";
import "@openzeppelin/contracts@4.5.0/utils/cryptography/MerkleProof.sol";
contract MyToken is ERC721, Ownable {
using Counters for Counters.Counter;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Secret Area</title>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
</head>
<body>
<p>Wallet Address - <span id="wallet-address"></span></p>
View FractionalizedNFT.sol
// 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 {