Skip to content

Instantly share code, notes, and snippets.

View kvhnuke's full-sized avatar
🤗
1100011

Kosala Hemachandra kvhnuke

🤗
1100011
View GitHub Profile

MEWWallet Skale giveaway

Skale token giveaway guide

Procedure

  • Hashes of valid entry addresses and their respective tickets range published at https://gist.github.com/kvhnuke/df1ece7863aeed2dfe9ba20e4cef85d7
  • Hash is drived using Keccak256(eth address)
  • Winning block number will be 13960500, let's call this N
  • Then we will collect the Hashes of blockHash(N),blockHash(N+1),blockHash(N+2),blockHash(N+3),blockHash(N+4) (Total of 5 blockhashes)
  • Then use following formula to select the Winners,
  • NE number of entries (4592)
0x4643cdee617011fbd1b3b44275aedc73e9404df595c498b101273710976781c1 1-130
0x56bcb1300bf0a21f046c995abe806a951aca96f3f9df699a82153bc12a3f6f15 131-262
0x247b1edd576c5fb0d5829de72c68871d0126f864ae9ffbc5e182851b9d22d66a 263-406
0x55cd929305f7f46636e54c1f677c362c51832d4adafb5c2ebc4d9d2f1bc83646 407-420
0xe928ac147914ab0cf8a34e570d8b867bb23be0b82a9e3610a4fd333c349d6bb7 421-470
0x7b52465ef581c772e45658dfe1fa4cf9717ceb7942826ae3dfa75e606f4d9821 471-520
0xa2c9b89922a66c0cf17741042290f3a001fbeb173712391a83274fea17f6c87f 521-534
0x7bbc094fa6d7ffd2bd908a50763cf27054ddc753de4460a006ae13b71ebf3e85 535-585
0xfe241f2b34ec63351ba9b5fe3acdff9d8da1ca824b814539afd7db5e3bcc7514 586-596
0x17e6fe894b44504a966d717478aa5900a529ad7a7600fcbc8994ffafbdfb47e1 597-1597
@kvhnuke
kvhnuke / uni_addresses.json
Last active September 22, 2020 19:42
affected uni addresses
["0x1F78dAa1486B3E06B58F4D8082260f54abD3b8C9","0x5dda63cec15A3b875D3ba3B72f541220dc6AbD29","0x43689531907482BEE7e650D18411E284A7337A66","0x3d7aF8e0F579f8A552a1BCe62191bC8DEac5A6de","0x750650d39D41cbF2afD591C22A204634EAa60db5","0x7ABE298b95E797892C011a1BDFa685A0364300bC","0x0B41CE5eC9E72187552a70ab9706DEf1467F135C","0xb8b6Ae0a57f94E9A433eF27Fc4878028123A89A9","0xDce29d5AE4E129C432007CDFac7eA96FF01a4861","0xA57f1bFbF7792B632D2A2833EA1c62a27fca07e8","0x04c61c7c1498E5999daCcd9753336c6b6B099184","0x1b36dFd34F1f42a96C48830c122a80E7AB8395Fc","0xEA0b00aDd1D68B5ff559CaA3CD271A71f0712d9E","0xEBA5724C55f57Ff8c630824FFD8Adf6CF71eF94a","0xdd83CAD24868D753adfad32236A5A3B4E11502C8","0x85c9E746f0EeeD938888591f6f64A8ea17eE208a","0x42D232a64Db3F6aab73a4b3260a7E7717337bB98","0x99Eb3f31922b44577CC25ABd717fD1C6f04FF8f2","0x918Fd6c9C2307Ce56188dd7eB96DC8f0219e74D7","0x34a84D282d5236085d694261cFe223F9758471f8","0xFf6338bE5a1EC6967F4A2F7116f9453C03c18388","0x8885A87bfDCa9bf1e416abf942f0a8c8036d29Fb","0xD284258dacB42F5A618CC961E05D3c
pragma solidity >=0.4.22 <0.6.0;
pragma solidity ^0.5.0;
interface ENS{
function nameExpires(uint256 id) external view returns(uint);
}
contract NameExpires {
constructor() public {}
function getExpirationDates(address ensAdd, uint[] memory labelHases) public view returns(uint[] memory){
ENS ens = ENS(ensAdd);
Block #8157300
Block Hash: 0x036055f50d9f16bc05b42fc7e40045474905acd3cd6e14b758216a9d99faf2bd
Winner Position: 21
Winner Hash: 0x512e05b673a0374ff8fab36bd74d7396cf49d3da40aa3fccfa255b126bf80c72
Block #8157301
Block Hash: 0xc718c198848b8c00e5f3f08adbb59284800a9c4d89155dd56e90c3f1bfdf6c8b
Winner Position: 58
Winner Hash: 0x0e962ec866494cbc151c0eb2b8f2bbdd0b63267fbb6d05819e568f08fdbcd2f9
@kvhnuke
kvhnuke / valid-hashes-ethvm.txt
Created July 15, 2019 05:40
Valid Hashes for EthVM survey
0x09cc191505029d0168e0ef102eec9b4a981ba672d8ec27c04e7607f074328a9a
0xc7ba671b80b4e0397e9bfab29927f1dce07afd537b58916cfcd6bc1f9b14593d
0x811fe0dd1ecc421a7f08beace64dc7fd7ad64455f99d2805dc081778ce8aa515
0x62a4deec10f505cc300bc8c5412a7d9b0aff2d3909b0d9d57637e750262f869a
0x3eb056bdca37f554041f01004c32b486877f4b726c7b779d4b8ea98f92c13d7d
0xddcaa2d035898de479513c600fd4b166bfe95e2432e8951870b65e67f0bdde00
0xa147140e045c74056d2fba2878a4625925d1b625a82a66323ecde92815ff96aa
0xcfbbf3bfa25e8ea5df575abb58160eace7d4037e1a4f2988f04bf59042b72334
0x4de240f7dcff88fac7815109d28c49c125d58e15c7583e248796048f48ca39ac
0xc7824746250cb0a364ca2d45d4fec3d9bc9f609880b906d769bbefa6be6df4db
@kvhnuke
kvhnuke / survey-giveaway.md
Created July 3, 2019 20:10
EthVM Survey Giveaway

Blockchain Explorer Survey

5 MEW Engraved Ledger Nano S and Stickers Giveaway

Rules

  • Survey must be thoughtful
  • Valid
  • No spamming
  • Must answer all questions, including open ended responses
@kvhnuke
kvhnuke / winners.txt
Created February 8, 2019 19:23
Survey Winners.txt
Block #7192100
Block Hash: 0x065fb1460a039f57ccf267208fb508d4b2b72e5d14d10a62dbf372d54c5ebcb9
Winner Position: 69
Winner Hash: 0x562b48b63ed4234d7b07bc13d2a51a46f98b5951a13660bdd46a30c67bdfd195
Block #7192101
Block Hash: 0xf20c49fbbb01eed1e68905c2e3310d92ebbc44ecd2f863527955ab18aaf16903
Winner Position: 5
Winner Hash: 0xd896418c6dde31e3ed5ee745e41eae0d1b0d0c6481cd63dbace546ca2fc41b49
@kvhnuke
kvhnuke / valid-hashes.txt
Created February 8, 2019 02:52
Hashes of valid Entries
0xe0887c43f16d76723d9d5b4051bf13d3ea9d1e45eaa5ba53cc2568b60dc939e9
0xc5265420b522169dd71b6d04f81922a9124b3f480c34912fd2462beb040bc20a
0xe67fb8440ae0ee983f5a7a646f594658130a86be76b2adc1ce26e7b93a1a5d19
0xc0c4bc28401d367daa34ae9458f29a912077e8b984b970d02b0b9a70a3cdcf60
0x397b0704e10cf65390fbc6d8983577f32b49d9dbd1c8a88617f0e330b62e21de
0xd896418c6dde31e3ed5ee745e41eae0d1b0d0c6481cd63dbace546ca2fc41b49
0xddbc35d5c57ba5a4f0804965f7515d8b910ac875a34964a8f7312d2cf58d4cbf
0xcfceb8546fa54f783a875081ead3e12657047b7748933e4c1dc84a48a68cc851
0x556b9be5ebd29f1a2a9e39cc6b8ad7d8ca3f7d920f40f5f0a8f50890c39e7923
0xf60463e10e3e091259ed91566cc294ba578072391b44ec29d05091be0169f774
@kvhnuke
kvhnuke / AbiTester.js
Last active February 6, 2019 00:04
ABI Testing
pragma solidity ^0.5.0;
contract ABITester {
uint200 public const_abc;
bool public const_nice;
bool public const_nice2;
bytes32 public const_time;
bool public const_nicer;
uint[] public ArrUint;
bool[] public ArrBool;