-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
414 additions
and
279 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = ICOsmartcontracts | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Usage | ||
===== | ||
|
||
presale - deploy a presale contract | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
A presale contract is a contract to collect presale investor money to be moved to a crowdsale when the crowdsale opens. The cresale contract can be deployed through ``presale`` command. After deploying the investors can call its ``invest()`` and ``refund()`` function from any Ethereum wallet allowing the transaction ``data`` field set. | ||
|
||
``presale --help``:: | ||
|
||
Usage: presale [OPTIONS] | ||
|
||
Options: | ||
--chain TEXT On which chain to deploy | ||
--address TEXT Account to deploy from (must exist on geth) | ||
--days INTEGER How many days presale is frozen for | ||
--minimum FLOAT What is the minimum pre-ico buy in (ether) | ||
--help Show this message and exit. | ||
|
||
Example that makes immediately refundable presale contract for testing on the mainnet:: | ||
|
||
presale --address=0x8888888888888888888 --days=-1 --minimum=0.001 | ||
|
||
Make sure mainnet chain is running, you can connect to it, or you'll get timeout | ||
Web3 provider is RPC connection http://127.0.0.1:8545 | ||
Deploy address is 0x8888888888888888888 | ||
Deploy address balance is 0.80625992728132232 | ||
Please provide the password to unlock account `0x8888888888888888888`.: | ||
Deploying presale, tx hash is XXX | ||
Presale contract address is YYYY | ||
Presale constructor arguments is 0000000000000000000000000000000000000000000000000000000058d9722800000000000000000000000000000000000000000000000000038d7ea4c68000 | ||
Presale freeze ends at 1490645544 | ||
Presale minimum buy in (wei) is 1000000000000000 | ||
Presale.invest() estimated gas cost is 107700 | ||
Presale.invest() data payload is 0xe8b5e51f | ||
Presale.refund() data payload is 0x590e1ae3 | ||
All done! Enjoy your decentralized future. |
Oops, something went wrong.