Skip to content

A pack of all solidity codes, I've written not joined to my lessons.

Notifications You must be signed in to change notification settings

0xfps/my-solidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-solidity

My Solidity projects.

1. English auction for NFT.

  • Seller of NFT deploys this contract.
  • Auction lasts for 7 days.
  • Participants can bid by depositing ETH greater than the current highest bidder.
  • All bidders can withdraw their bid if it is not the current highest bid.

After the auction:

  • Highest bidder becomes the new owner of NFT.
  • The seller receives the highest bid of ETH.

Deployed contract on Rinkeby Etherscan.


2. Crowd Fund

Crowd fund ERC20 token

  • User creates a campaign with a particular token.
  • Users can pledge, transferring their token to a campaign.
  • After the campaign ends, campaign creator can claim the funds if total amount pledged is more than the campaign goal.
  • Otherwise, campaign did not reach it's goal, users can withdraw their pledge.

Deployed contract on Rinkeby Etherscan.


3. Dutch Auction

Dutch auction for NFT

  • Auction
  • Seller of NFT deploys this contract setting a starting price for the NFT.
  • Auction lasts for 7 days.
  • Price of NFT decreases over time.
  • Participants can buy by depositing ETH greater than the current price computed by the smart contract.
  • Auction ends when a buyer buys the NFT.

Deployed contract on Rinkeby Etherscan.


4. Faucet

  • A simple Rinkeby Ethereum faucet that transfers 0.2 ether to addresses that request for it.
  • Ether can be transferred to addresses as long as the interval is 12 hours.
  • Faucet funders are recorded and are public.
  • Faucet funders can only transfer 1 ether to the faucet.
  • On any transfers of more than 1 ether, the balance is sent back to the funder, and 1 ether is taken in by the contract.

Deployed contract on Rinkeby Etherscan.


5. Delegatecall

  • An upgradable smart contract project implementing the delegatecall functionality.
  • It includes the 3 necessary contracts an upgradable contract should have. [x] Proxy.sol: The contract to interact with the upgradable contract. [x] Store.sol: The contract holding the storage variables. [x] Main.sol: The actual contract that handles the logic. [ ] Admin.sol: Contract with admin roles. This is optional.

Proxy contract on Rinkeby Etherscan.


6. ERC-20 ($FPS)

  • ERC-20 Token.

Deployed contract on Rinkeby Etherscan.


7. New Faucet


8. USDT

  • $USDT, a copy of the ERC-20 token on Rinkeby USDT for token testings on development network.

Deployed contract on Rinkeby Etherscan.
Deployed contract on Rinkeby Etherscan.


9. Address Book

  • A basic contract that works like a phone book. Allowing users to map names to addresses, and retrieving it when needed.

Deployed contract on Rinkeby Etherscan.


10. $AGU

  • ERC-20 Token.

Deployed contract on Rinkeby Etherscan (1). Deployed contract on Rinkeby Etherscan (2).


11. $AGU 2


12. ERC-721

  • Legio, an ERC-721 NFT project.

Deployed contract on Rinkeby Etherscan (1).
Deployed contract on Rinkeby Etherscan (2).
Deployed contract on Rinkeby Etherscan (3).


13. Ether Wallet

  • EtherWallet, a crowdfunding smart contract.
  • This is a simple Solidity program that allows anyone to send ether to a wallet then allowing only the owner to withdraw.
  • This was my FIRST Solidity Smart Contract task, and I am so proud of it ❤🕊.

Deployed contract on Rinkeby Etherscan.


14. Iterable Mapping

  • A contract that communicates between a mapping and an array stored on the contract.

Deployed contract on Rinkeby Etherscan.


15. Libraries

  • A bunch of libraries I wrote for math, experimenting.


16. Liquidity

  • Uniswap's liquidity contracts I studied.


17. Merkle Tree

  • A contract that calculates the merkle tree from an array of transactions made with the contract.
  • Hint: I bugged this contract 😉.

Deployed contract on Rinkeby Etherscan.


18. Multi-Sig Wallet

  • A contract that approves pending transactions made on the contract on the condition that ((1/2) + 1) of the users of the contract has approved it.

Deployed contract on Rinkeby Etherscan.


19. Token Task


20. Sign.sol

A demo practise about signing and verifying signed transactions with Solidity.


21. StoreEmitAndRetrieve.sol

Simple storage and retrieval with Solidity.


22. Create2Factory

Practical contract applying the create 2 functionality to pre-calculate the deploy address of a particular contract with its constructor parameters and salt.

About

A pack of all solidity codes, I've written not joined to my lessons.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published