consensys / token-factory Goto Github PK
View Code? Open in Web Editor NEWBasic Token Factory dapp.
Basic Token Factory dapp.
Transpiling is a rabbit hole.
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
Decimals is there and added, but not being used currently in the front-end.
WIP
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)
I've accidentally been deploying untested code that breaks things. Bad practice.
$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
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.
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)
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
$docker exec -it token-factory /bin/bash
opts.useFsEvents = false
. #vim /usr/local/lib/node_modules/truffle/build/cli.bundled.js
(*1)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
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"
// 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
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)
Truffle webpack is too slow as it has to reload the whole webpack atm.
When approving 100 tokens: "100 has been approved to withdraw an amount of 100."
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.
To something different that reads nicer for default addresses in forms.
Coin Symbol : FGX
Coin Cap : 5.000.000
Decimals : 0
Owner address : 0x631393adac6240d195dce15de98961463d32fc1a
Can somebody help me?
from @FlySwatter.
Right now entering a non-hex-prefixed address into the check balance field will silently fail to the user.
It would be easy enough to call ethUtil.addHexPrefix(userInput)
, so I think that would be better.
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)
Friend recommended: http://tokenfactory.surge.sh/#/
No idea where to find the source.
Google "token factory" and this is the first result...
(no idea though)
Token Factory, an application that lets you create these tokens, just to play around with: https://tokenfactory.surge.sh
When you first visit a token page with Mist or MetaMask, like the Pluton page here:
https://tokenfactory.surge.sh/#/token/0xD8912C10681D8B21Fd3742244f44658dBA12264E
It would be cool if at the top it showed your current balance, if you have an account already set at web3.eth.accounts
.
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.
When adding an address there needs to be a check to make sure it is actually a standards-compliant ERC20 token.
Simple Google Analytics
Higher gas amounts take longer to confirm, so use estimation everywhere.
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 !
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.
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.
https://github.com/ConsenSys/Token-Factory/blob/master/app/index.html#L17
Not sure if you knew or not. Just a heads up you might be getting false pings from people like me running locally
Reported by Dan & Kumavis.
Encountered issues with the new updates/code trying to make it work with webpack.
Currently, the front-end deploys the binary. Better to move to an ethereum-based factory. The code is there, just need to make the switch.
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
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.
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
Potentially can be done through localstorage OR actually trying to get info from ethereum afterwards. either/or. Post alpha.
We need to clarify which is definitive: this or https://github.com/ConsenSys/Tokens ? We don't want people to get confused and use contracts which are less secure and battle-tested.
Potential issues abound. CORS, slowness, etc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.