Skip to content

Instantly share code, notes, and snippets.

View norah1499's full-sized avatar
๐Ÿ˜€

Norah norah1499

๐Ÿ˜€
View GitHub Profile
@norah1499
norah1499 / Verification.md
Created April 22, 2026 05:54
Verification

My public address is 0x4525Ac33F4200b52B1a028Bb5affC2aE88d59Bf2

@norah1499
norah1499 / Projects...CPMM.sol
Created February 24, 2023 06:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
//CPMM : Constat product market maker
//This contract implemets CPMM for fix pair of 2 ERC20 Tokens
//Does not account for fees
contract CPMM{
@norah1499
norah1499 / Lottery.sol
Last active January 30, 2023 11:05
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
//This is lottery smart contract
//It will have players and owners
//Players enter the lottery by paying the lottery ticket price
//Owner recieves its cut from the players entry ticket price
//The rest of the amout consist of pot money
//Then Winnner is randomly pick who wins the entire pot money
@norah1499
norah1499 / MultiSigWallet.sol
Last active January 29, 2023 11:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
//This smart contract will take list of owners and the no of signatures needed to confirm the
//the excution of the transcation, which were submitted by one of them only
//Idea is, say in we have 3 onwers and atleast 2 signature are required to execute any transcation.
//One owner will submit the transcation then it will have to wait until atleast one owner of the
//confirm to allow the spending
contract MultisigWallet{
@norah1499
norah1499 / Learining...EscrowMechanism.sol
Created January 28, 2023 11:34
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
//This smart contract escrow for seller and buyer
//Idea is seller will intiate transfer of goods once the buyer has lock the funds in smart contract.
//So first buyer will lock the funds, then wait for goods to arrived, upon finding all well,
//He/she will confirm then the fund will be available to withdraw to seller
//Limitation of the following imlementation is the at a time buyer with particular seller can engage in only in single transaction
//This limitaion can be overcomed by tracking for each transcaton with uinique id through entire journey
@norah1499
norah1499 / Learining...Timelock.sol
Created January 28, 2023 09:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
//This contract locks users fund for duration of week
contract TimeLock{
//Mapping to store the amount of money deposited by user
mapping (address => uint) public deposits;
//Mappig to keep track of the time left until the user can withdraw