This file contains 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
<?xml version="1.0" ?> | |
<style-scheme id="nobody" name="Nobody" version="1.0"> | |
<author/> | |
<_description>nobody</_description> | |
<color name="white" value="#eeeeee"/> | |
<color name="yellow" value="#fce94f"/> | |
<color name="asfalto" value="#61635f"/> | |
<color name="carbon" value="#232323"/> | |
<color name="green" value="#b5d600"/> |
This file contains 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.4.24; | |
// Only Signatures of few methods used in the ERC20Token contract. | |
contract OurToken { | |
function balanceOf(address tokenOwner) public constant returns (uint balance); | |
// To release tokens to the address that have send ether. | |
function releaseTokens(address _receiver, uint _amount) public; |
This file contains 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
function deployERC20(){ | |
var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/v3/99ba9cf51093478e8941ff667779149c')); | |
//var web3 = new Web3(new Web3.providers.HttpProvider('http://68.183.223.119:22002')); | |
// account = web3.eth.accounts.create("hello"); | |
// address = account.address; | |
// privateKey = account.privateKey; | |
// console.log("address", address); | |
// console.log("privatekey",privateKey); |
This file contains 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
function deployERC20(){ | |
//var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/v3/99ba9cf51093478e8941ff667779149c')); | |
var web3 = new Web3(new Web3.providers.HttpProvider('https://api.giftz.exchange')); | |
// account = web3.eth.accounts.create("hello"); | |
// address = account.address; | |
// privateKey = account.privateKey; | |
// console.log("address", address); | |
// console.log("privatekey",privateKey); |
This file contains 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
public class ZookeeperNonceTransactionManager extends FastRawTransactionManager implements TransactionManager { | |
private static final byte ATTEMPTS = 20; | |
private static final int SLEEP_DURATION = 100; | |
private static volatile BigInteger nonce = BigInteger.valueOf(-1); | |
private final ZookeeperNonce zookeeperNonce; | |
private final TransactionReceiptProcessor transactionReceiptProcessor; |
This file contains 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
function _object_equals(object_1, object_2) { | |
const keys = new Set([ | |
...Object.keys(object_1), | |
...Object.keys(object_2) | |
]); | |
for (const key of keys) { | |
// if one is instance of object, check if both are | |
if (object_2[key] instanceof Object || object_1[key] instanceof Object) { | |
if (object_2[key] instanceof Object && object_1[key] instanceof Object) { |