Skip to content

Instantly share code, notes, and snippets.

View prithwis's full-sized avatar
🎯
Focusing

Prithwis Mukerjee prithwis

🎯
Focusing
View GitHub Profile
@prithwis
prithwis / pmConOne.sol
Created November 25, 2020 15:15
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.4.25+commit.59dbf8f1.js&optimize=false&runs=200&gist=
pragma solidity ^0.4.24;
// https://www.dappuniversity.com/articles/solidity-tutorial
contract pmConOne {
string pmValue;
function get() public view returns(string) {
return pmValue;
}
@prithwis
prithwis / pmEtherBox.sol
Last active December 1, 2020 12:10
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.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
pragma solidity ^0.4.17;
// https://programtheblockchain.com/posts/2017/12/15/writing-a-contract-that-handles-ether/
// https://colab.research.google.com/drive/1S860CGKebS9MxuzmdaQjpnbpBnYc0Ag3?usp=sharing
contract pmEtherBox {
string msgWithdrawn = 'Withdrawn';
string msgDeposit = 'Deposit';
string msgBalance = 'Current Balance';
@prithwis
prithwis / pmCrudCon.sol
Last active December 4, 2021 04:01
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.4.25+commit.59dbf8f1.js&optimize=false&runs=200&gist=
pragma solidity ^0.4.6;
// https://medium.com/robhitchens/solidity-crud-part-1-824ffa69509a
// https://bitbucket.org/rhitchens2/soliditycrud/src/master/contracts/SolidityCRUD-part1.sol
//
// the python client for this contract is available at
// https://colab.research.google.com/drive/1JQAze2ZxRF1_AsGbdyQWr82XsFWPP3gk?usp=sharing
//
contract pmCrudCon {