Skip to content
bartwr edited this page Oct 29, 2017 · 6 revisions

3 Simple steps for deployment to Ethereum:

  1. Convert Solity code to bytecode, for example using Atom or https://remix.ethereum.org/
  2. Use MyEtherWallet (MEW) to deploy the code to the Ethereum Virtual Machine
  3. Test it!

For detailed information, see below.

Convert Solidity code to bytecode using Atom

In this example we convert the MinerDAO contract to Ethereum using Atom.

  1. Open Atom

  2. Install Etheratom

Install package: "Open installer"

Install Etheratom

  1. Open contract.sol

  2. Ctrl + Alt + V

  3. Click: [Compile]

Etheratom interface: Compule

  1. Give arguments to contract & click "Create"

In the case of MinerDAO contract: full in an array of payout addresses. In example: ["0xb38dC6A1A4De7CeB0EDE9F2310dF70dDa8638e34"]

Create contract

Convert Solidity code to bytecode using Remix

  1. Go to https://remix.ethereum.org/

  2. Copy -> Paste your code into the editor

  3. Click the "Run" tab in the right side bar

Run @ MEW

  1. Select as environment: "Javascript VM"

Javascript VM environment

  1. Give the payout addresses as argument

Left from the "Create" button, full in an array of payout addresses. In example: ["0xb38dC6A1A4De7CeB0EDE9F2310dF70dDa8638e34"]

Constructor arguments

  1. Now click "Create". It will give you detailed information afterwards.

Result

  1. Click "Debug" button, next to constructor call

img

Use MyEtherWallet to deploy the code to Ethereum

  1. Click "Contracts"

  2. Click "Deploy contract"

Deploy

  1. Login with your private key

Login with private key

  1. Copy call data

Call data