This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity >=0.5.16 <0.6.9; | |
| //INCONTRACTWETRUST4.0 | |
| interface tokenRecipient { | |
| function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; | |
| } | |
| contract EthereumeRush { | |
| string public name; | |
| string public symbol; | |
| uint8 public decimals = 18; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity >=0.5.16 <0.6.9; | |
| //INCONTRACTWETRUST4.0 | |
| interface tokenRecipient { | |
| function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; | |
| } | |
| contract EthereumeRush { | |
| string public name; | |
| string public symbol; | |
| uint8 public decimals = 18; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.6.3; | |
| interface tokenRecipient { | |
| function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; | |
| } | |
| contract EthereumPay { | |
| string public name; | |
| string public symbol; | |
| uint8 public decimals = 18; | |
| uint256 public totalSupply; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.6.3; | |
| interface tokenRecipient { | |
| function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; | |
| } | |
| /** | |
| * @title SafeMath | |
| * @dev Math operations with safety checks that throw on error | |
| * This contract neet to support referals system for erush's fast growth. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity > 0.5.14; | |
| contract eerminer { | |
| function checklasttwentyblock() view public returns(bool, uint256) { | |
| if(uint256(blockhash(block.number-1)) % 5200 == 1){ | |
| return (true, block.number-1); | |
| }else if(uint256(blockhash(block.number-2)) % 5200 == 1){ | |
| return (true, block.number-2); | |
| } else if(uint256(blockhash(block.number-3)) % 5200 == 1){ | |
| return (true, block.number-3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib, struct, codecs | |
| ver = 2 | |
| prev_block = "000000000000000117c80378b8da0e33559b5997f2ad55e2f7d18ec1975b9717" | |
| mrkl_root = "871714dcbae6c8193a2bb9b2a69fe1c0440399f38d94b3a0f1b447275a29978a" | |
| time_ = 0x53058b35 # 2014-02-20 04:57:25 | |
| bits = 0x19015f53 | |
| # https://en.bitcoin.it/wiki/Difficulty | |
| exp = bits >> 24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from hashlib import sha256 | |
| import time | |
| import struct | |
| import binascii | |
| import datetime | |
| VERSION = 1 | |
| def hexify(value, type): | |
| return binascii.hexlify(struct.Struct(type).pack(value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| itemsRef.observe(DataEventType.value) { (snap:DataSnapshot!) -> Void | |
| in | |
| let getHistory = JSON(snap.value!) | |
| //for (key,_):(String, JSON) in self.getHistory { | |
| // self.keyArr.addObject(key) | |
| //} | |
| //self.myarr = self.keyArr.sort({Double($0 as! String)! > Double($1 as! String)!}) | |
| print(getHistory) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Node(): | |
| def __init__(self,key): | |
| self.key = key | |
| self.left = None | |
| self.right = None | |
| self.parent = None | |
| class Tree(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "arith_uint256.h"//Mod. | |
| //---------------------------------------------------------------------------------------------------------- | |
| //Mod. | |
| /* | |
| // calcolo del Blocco Genesi | |
| // Resettiamo il valore del blocco | |
| consensus.hashGenesisBlock = uint256S("0x"); | |
| std::cout << std::string("Iniziamo a calcolare il blocco:\n"); | |
| if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) { |