forked from CloinHQ/MinerDAO
-
Notifications
You must be signed in to change notification settings - Fork 1
How to deploy?
bartwr edited this page Oct 29, 2017
·
6 revisions
3 Simple steps for deployment to Ethereum:
- Convert Solity code to bytecode, for example using Atom or https://remix.ethereum.org/
- Use MyEtherWallet (MEW) to deploy the code to the Ethereum Virtual Machine
- Test it!
For detailed information, see below.
In this example we convert the MinerDAO contract to Ethereum using Atom.
-
Open Atom
-
Install Etheratom
-
Open
contract.sol
-
Ctrl + Alt + V
-
Click: [Compile]
- Give arguments to contract & click "Create"
In the case of MinerDAO contract: full in an array of payout addresses. In example: ["0xb38dC6A1A4De7CeB0EDE9F2310dF70dDa8638e34"]
-
Copy -> Paste your code into the editor
-
Click the "Run" tab in the right side bar
- Select as environment: "Javascript VM"
- Give the payout addresses as argument
Left from the "Create" button, full in an array of payout addresses. In example: ["0xb38dC6A1A4De7CeB0EDE9F2310dF70dDa8638e34"]
- Now click "Create". It will give you detailed information afterwards.
- Click "Debug" button, next to constructor call
-
Click "Contracts"
-
Click "Deploy contract"
- Login with your private key
- Copy call data