GithubHelp home page GithubHelp logo

token-factory's Issues

Token gerareted through toten factory - Cannot transfer tokens to other address?

I have made a contract through token Factory

Hi
Hi
I have added the token to my wallet, but I cannot see any balance in it.

I am having an issue transferring the tokens via metamask, have tried like 10 times and paid gas every time, but nothing shows up...

Further I cannot see my token in metamask, but that is because it is with 18 decimals and not 3 or less...

I have made transfer request from myetherwallet but nothing shows up...

I dont't hope I will need to make a new contract.

Thanks in advance

All the best

/ Joe

Insufficient intrinsic gas error when sending all tokens

Token-Factory seems to specify its own gas limits, and mis-estimates when sending all of my remaining balance.

Not sure how reproducible this will prove.

With MetaMask, you don't need to specify a gas limit, we will run an estimate against the RPC.

Cannot start app

$truffle serve

Serving static assets in ./build on port 8080...
Rebuilding...
/usr/local/lib/node_modules/truffle/build/cli.bundled.js:124978
  return (new fsevents(path)).on('fsevent', callback).start();
          ^

TypeError: fsevents is not a constructor

truffle serve error

After "npm install" I try to run "truffle serve" and get this:

truffle serve
Error: Couldn't find preset "es2015" relative to directory "/home/asphyxia/Downloads/Token-Factory-master"
at /home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-core/lib/transformation/file/options/option-manager.js:299:19
at Array.map (native)
at OptionManager.resolvePresets (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-core/lib/transformation/file/options/option-manager.js:270:20)
at OptionManager.mergePresets (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-core/lib/transformation/file/options/option-manager.js:259:10)
at OptionManager.mergeOptions (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-core/lib/transformation/file/options/option-manager.js:244:14)
at OptionManager.init (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-core/lib/transformation/file/options/option-manager.js:374:12)
at compile (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-register/lib/node.js:103:45)
at loader (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at module.exports (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/lib/require-nocache.js:5:10)
at Function.Config.load (/home/asphyxia/.nvm/versions/node/v7.0.0/lib/node_modules/truffle/lib/config.js:196:23)

Add basic token buy/sell escrow orders

EtherEx has a more complicated order matching system. For starters, one can build simple buy/order systems for tokens buy making an buy/sell escrow contract.

It's quite simple.

  1. Create a contract with order filling functionality and setting a price someone else will pay per unit.
  2. Approve a certain amount of tokens one wants to sell to this contract.
  3. Someone else can then come in, send ether to it and then approved tokens are transferred to person buying the tokens.

Piper Merriam has built a simple version of this here: https://gist.github.com/pipermerriam/68ab56ad47358193a4d4ecf367f2e683

A variant of this was built by avsa. See here: https://ethereum.org/token#automatic-selling-and-buying

Extract into a template

If others want to fork the token factory to make a basic token wallet skin (instead of just "token"), there should be a simple template to do so.

Re-add uPort support.

Encountered issues with the new updates/code trying to make it work with webpack.

I tried to run token factory in docker container but it did not work.

Summary

I got HumanStandardToken is not defined error when I tried to run token factory in docker container. Can you help me with my issue?

Steps to Reproduce

  1. git clone https://github.com/ConsenSys/Token-Factory.git
  2. create Dockerfile
  3. create docker-compose.yml
  4. docker exec. $docker exec -it token-factory /bin/bash
  5. change opts.useFsEvents = false. #vim /usr/local/lib/node_modules/truffle/build/cli.bundled.js (*1)
  6. truffle serve
  7. access localhost:8080 and create token
  • Dockerfile
FROM node:latest

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install vim -y
RUN npm install
RUN npm install -g webpack
RUN npm install -g truffle
  • docker-compose.yml
version: '3.4'

services:
  app:
    build: .
    tty: true
    image: token-factory:latest
    container_name: token-factory
    working_dir: /home/node/app
    volumes:
      - ./Token-Factory/:/home/node/app
    ports:
      - "8080:8080"
  • cli.bundled.js
// Enable fsevents on OS X when polling isn't explicitly enabled.
//if (undef('useFsEvents')) opts.useFsEvents = !opts.usePolling;

// If we can't use fsevents, ensure the options reflect it's disabled.
//if (!FsEventsHandler.canUse()) opts.useFsEvents = false;
opts.useFsEvents = false

*1 trufflesuite/truffle#734

Expected Results

No error occurred.

Actual Results

HumanStandardToken is not defined error occurred.

app.js:50443 Uncaught ReferenceError: HumanStandardToken is not defined
    at Constructor.executeFunction (app.js:50443)
    at Object.ReactErrorUtils.invokeGuardedCallback (app.js:12386)

2018-02-06 11 17 10

web3 environment checking

This should work in Mist, Metamask or a normal RPC mode.

If not one of those are present, should it switch to a native browser lightwallet? Or recommend it, before switching to that?

Ideally, I'd want this to work on a mobile browser until we have the capabilities to sign these properly.

UnCaught Reference Error : HumanStandardToken is not defined app.js : 50152

Hello everybody,

I am a newbie in Ethereum development.
I try to deploy a smart contract via Token Factory but when I click on "Create Token" it gives me this error.
Metamask is injected in the browser.
I use truffle to build the project.

Problem is at the line 50152 of the file app.js : var ST = web3.eth.contract(HumanStandardToken.abi);

Thank you very much and nice to meet you !

need help creating new token ERC20 (willing to pay name your price)

1 trillion token total supply.

25% burn 25% liquidity until September 11th. 50% available for the market.

Transaction %s = 1% Burn, 1% split to investors, 1% to charity wallet, 1% to Dev wallet

Staking ability:
minimum required tokens to be determined later...
1% charity wallet, 3% burned, 2% dev wallet (115 billion able to be created per year max)

Error: spawn webpack ENOENT

showing Error: spawn webpack ENOENT when I run the below command
truffle serve
Serving static assets in ./build on port 8080...
Rebuilding...
Running webpack...
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn webpack ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Change uPort provider to query accounts when activating it.

Metamask requires pinging accounts regularly to fetch the latest address from the extension. uPort on the other hand uses getAccounts() to fire the QR code. This is slightly incompatible as uPort would more likely have one "sign in" action vs potentially "many" from Metamask.

Thus, if using uPort, the sign in should happen and then address locally stored.

If the provider is uPort -> get address from local storage -> otherwise use getAccounts() when sending a tx.

Show/explain "watching"/"interacting" page better

Current UX in apps like Mist involves adding an ABI to "watch" a contract. In this case, the ABI should already be done (for the most part). Thus, it would be useful to make the interacting/watching page a bit cleaner.

npm install needs read access to this repo

If I do a npm install I get a permission denied error:
My best guess is that it is because this repo is not public. In principal my useraccount (koeppelmann) on Github should have access but I am not sure who to change the command in a way that my user account is used in the git clone command so that it will work.
Maybe there is a different solution for this problem?

npm install
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: Cloning into bare repository '/Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488'...
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: Permission denied (publickey).
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: 
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488: and the repository exists.
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/Cellar/node/5.2.0/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.2.0
npm ERR! npm  v3.3.12
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/martin/.npm/_git-remotes/_templates --mirror ssh://[email protected]/simondlr/reflux-tx.git /Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488
npm ERR! Cloning into bare repository '/Users/martin/.npm/_git-remotes/git-ssh-git-github-com-simondlr-reflux-tx-git-809eedf5d3bb515d418fc3419b80a488'...
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/martin/Documents/Code/Token-Factory/npm-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.