Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Prithwis Mukerjee prithwis

🎯
Focusing
View GitHub Profile
@prithwis
prithwis / pmEtherBox.sol
Last active Dec 1, 2020
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=
View pmEtherBox.sol
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 Dec 1, 2020
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=
View pmCrudCon.sol
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 {
@prithwis
prithwis / pmConOne.sol
Created Nov 25, 2020
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=
View pmConOne.sol
pragma solidity ^0.4.24;
// https://www.dappuniversity.com/articles/solidity-tutorial
contract pmConOne {
string pmValue;
function get() public view returns(string) {
return pmValue;
}