Skip to content

Instantly share code, notes, and snippets.

View ajile-in's full-sized avatar
🎯
Focusing

Ajay Jadhav ajile-in

🎯
Focusing
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ajile-in on github.
* I am ajayjadhav (https://keybase.io/ajayjadhav) on keybase.
* I have a public key ASBwC_frFo0379jMkeXHjIUwvc0pQ84Gn9qU7v9RbIUFzwo
To claim this, I am signing this object:
pragma solidity ^0.4.21;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
@ajile-in
ajile-in / 8626_CustomerContract.sol
Last active March 14, 2018 01:45
Simple Customer Contract
pragma solidity ^0.4.0;
contract CustomerContract {
string name;
function CustomerContract(string n) public {
name = n;
}
@ajile-in
ajile-in / BallotWithModifier.sol
Created December 17, 2017 04:43
BallotWithModifier.sol
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@ajile-in
ajile-in / testrpc-with-accounts
Created November 8, 2017 02:06
testrpc-with-accounts
testrpc --account="0x8410435c31b61b5905c8291062349d06a34c3db9aee076d13396ab378ec7e1d9,1256000000000000000000" --account="0x95a4ce88c0025aa2374a9c28ebf2fc8f3ec4839f3002c0f0e2ce6e53c06df2b8,2500000000000000000000" --account="0x67f17db4c8e961605d177922226e92cb5fadc38401fc8a269d45e06fa3870f5a,3500000000000000000000" --account="0x63887c15b1f6cdc4b6f6f69a6b2af3debcb28a9023f25328114a6a6827d66b7c,6543000000000000000000" --account="0xbdd477d19cb3d80cc85a63acdbadf5c8d9341a2435b8a13545196a4f6138fe35,15476000000000000000000" --account="0x5282cd13d01b2ba81e140fa654f44e73a23c927682d37bde440658080b026572,8500000000000000000000"
@ajile-in
ajile-in / CustomerContract.sol
Created November 6, 2017 03:10
CustomerContract
pragma solidity ^0.4.0;
contract CustomerContract {
string name;
string custAddress;
int orderCount;
function CustomerContract(string n) public {
name = n;
@ajile-in
ajile-in / testrpc-accounts.txt
Created October 25, 2017 15:33
testrpc using seeded accounts
testrpc --account="0x514d6b8e5ffe872a13eff340d90aa35fc0672ca88f57e1db491dd76f36296bc1,2500000000000000000000" --account="0xdb9a2b977aaa7c87fc78d0b373d7835a9d481265e6ce990891c22c6905c3d4cd,3500000000000000000000" --account="0xf67112228d835d133d96b2c7f88d9299ffbe7aa54aea9e0ad1a2f07250504e61,1500000000000000000000" --account="0xd968138cd7a7701b503a8ab7d2d25eee41e3dd60d9cb87a6ee324d59f371e616,4500000000000000000000" --account="0x36e91a9f3d0a68b963fd75439c0366b9b13306e10370d41b0817ca6d01d0986a,5500000000000000000000" --account="0x6376a6142b3380f0c44f98478b45235b9f93203482e8a4635ec72b049ee0d7b8,6500000000000000000000"
@ajile-in
ajile-in / mycontract.sol
Created October 24, 2017 16:00
Solidity Contract- MyContract
pragma solidity ^0.4.0;
contract MyContract {
string[] listOfStates = new string[](26);
function myFunction(uint len) {
bytes memory anotherB = new bytes(listOfStates.length);
}
function populateAState(string aState, uint index){

Keybase proof

I hereby claim:

  • I am jadhavajay on github.
  • I am ajayjadhav (https://keybase.io/ajayjadhav) on keybase.
  • I have a public key whose fingerprint is DE92 E99E CC73 7B82 12AC EBF9 500B 2F7E 8A34 CD92

To claim this, I am signing this object: