Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 05 2016 10:31
    @alexvandesande banned @adamskee
  • Mar 16 2016 01:12
    @alexvandesande banned @scbosse
eddie2024
@eddie2024
I write in sublime or vim. and demo on remix / mist
truffle framework is pretty handy too
once you have a contract deployed you can use the mist UI to interract with it(run functions)
CharmerHQ
@CharmerHQ
okay.
ryankrucker
@ryankrucker
okay. any good repos to check out for inspiration?
eddie2024
@eddie2024
open-zeppelin
its a truffle framework
Keno Leon
@KenoLeon
@CharmerHQ : Atom + parity/kovan is another route for testing.
piethein1628
@piethein1628
When I add these two lines it cannot compile the source code // Notify anyone listening that this transfer took place
Transfer(msg.sender, _to, _value);
event Transfer does not give a problem, what should I correct here to make it work:

// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);

// Notify anyone listening that this transfer took place

Transfer(msg.sender, _to, _value);

It seems the event transfer line already has all the information, is this correct? What issues will I run into if I leave out the 2 lines after event Transfer?
eddie2024
@eddie2024
can someone send me some funds please on rinkeby: 0x6Ef4478444cEAd921fDCc409180f159b6FbfB98e
piethein1628
@piethein1628
@piethein1628 Fixed: relocated last two lines to end of contract
eddie2024
@eddie2024
I'm having some issues with this code, if anyone more knowledgeable could contribute thier 2 pence, it would be greatly appreciated:
  function validPurchase() internal constant returns (bool) {

    uint256 current = block.number;
    bool withinPeriod = current >= startBlock && current <= endBlock;
    bool nonZeroPurchase = msg.value != 0;
    bool withinCap = false;
/*  
    bool withinBonusThirtyCap = current <= thirtyPercentEnd && weiRaised.add(msg.value) <= bonusThirtyCap;
    bool withinBonusTwentyCap = current <= twentyPercentEnd && weiRaised.add(msg.value) <= bonusTwentyCap;
    bool withinBonusTenCap = current <= tenPercentEnd && weiRaised.add(msg.value) <= bonusTenCap;
    bool withinMaxCap = weiRaised.add(msg.value) <= cap;
    bool withinCap = (withinBonusThirtyCap || withinBonusTwentyCap||withinBonusTenCap|| withinMaxCap);
*/    
    if (current <= thirtyPercentEnd && weiRaised.add(msg.value) <= bonusThirtyCap){ 
      withinCap = true;
      } else if (current <= twentyPercentEnd && weiRaised.add(msg.value) <= sumTwenThirty){
      withinCap = true;
      } else if (current <= tenPercentEnd && weiRaised.add(msg.value) <= sumThiTwenTen){
      withinCap = true;
      } else if (current > tenPercentEnd && weiRaised.add(msg.value) <= cap){
      withinCap = true;
    }/* else { 
      withinCap = false;
      //return !withinCap;
    }   
*/
//    bool withinCap = (withinBonusThirtyCap || withinBonusTwentyCap||withinBonusTenCap|| withinMaxCap);
    return withinPeriod && nonZeroPurchase && withinCap;  
   }
other related code :
    blockShare = (endBlock - startBlock)/100;
    thirtyPercentEnd = (startBlock +(20 * blockShare));
    twentyPercentEnd = (thirtyPercentEnd +(20 * blockShare));
    tenPercentEnd = (twentyPercentEnd +(20 * blockShare));
    bonusThirtyCap = cap.div(5);
    bonusTwentyCap = cap.div(7);
    bonusTenCap = cap.div(10); 
    sumTwenThirty = (bonusTwentyCap + bonusThirtyCap);
    sumThiTwenTen = (bonusThirtyCap + bonusTwentyCap + bonusTenCap);
Vertigo Studios
@VERTlG0
@eddie2024 You're a coder?
I would think coders would know enough by now to use a paste bin service...
eddie2024
@eddie2024
I am many things. A solidity expert is not one of them. Duely noted on the pastebin though!
Pavel1991
@Pavel1991
Hello, tell me please at me at installation of a purse downloaded already 18 421 013 chain structure, it is normal?
sgalindop
@sgalindop
This message was deleted
wya93
@wya93
nimenhao
guys
angelsuarrez
@angelsuarrez
how i get my token in the list without entering my contract address in other all the time
REDEYEFILMS
@REDEYEFILMS
Hi there... Do u have staff that can help create our coin?
patch083
@patch083
Total noob question. Trying to run the MyToken tutorial code from website. Get an error Source file requires different compiler version (current compiler is 0.4.13+commit.0fb4cb1a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.16;
deepakdunitech
@deepakdunitech
hi
how to create token
robsuit
@robsuit
Are Rinkeby Tesnets and regular ETH network running the same versions of ETH??
I copy and pasted a smart contract from regular eth to a testnet wallet and I am getting complier errors. Do I need to include compiler inside of smart contract code? It's a github gist .
shouldn't this smart contract already have a complier inside if it was already an active smart contract. I took the smartcontract code from Etherscan.io and pasted it into my testnet wallet running on metamask
and it won't work .
I can't deploy the contract
if anyoen could help that would be great. thanks
Alex Van de Sande
@alexvandesande
@robsuit are you using Mist or Remix? What compiler errors?
robsuit
@robsuit
I'm a noob. Just cut and pasted right for etherscan into my wallet trying to deploy the contract. Did I need to use mist and Remix to compile first??
I thought the wallet had a complier
built in
Alex Van de Sande
@alexvandesande
Yes it has.
Do you see a URL bar in the top of your app?
robsuit
@robsuit
app or code?
Alex Van de Sande
@alexvandesande
Your app. Is it called Ethereum Wallet or Mist?
Also, what contract are you trying to deploy?
GK
@gktown
Hey guys, I'm looking for a smart contract that can accept multiple erc20 tokens in crowdsale. Do you happen to know a resource I could use?
robsuit
@robsuit
I'm using https://wallet.ethereum.org as UI for my metamask Rinkeby Testnet
This contract is for distributing funds to multiple wallets while also receiving funds from one wallet
meaning sending funds from 5 wallets and sending it to 1 - then that 1 wallet would distribute tokens back to those 5 wallets in a ratio that matches each wallets contributions
Alex Van de Sande
@alexvandesande
@robsuit if you are using Metamask then I recommend switching to remix.ethereum.org for contract deployment. The wallet fails in some more complex contracts
robsuit
@robsuit
I got thanks so much!!!
GO ETH!!!