Skip to content

Commit

Permalink
Merge branch 'master' into joshy-editor-config2
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Oct 22, 2020
2 parents 7b37f6a + 7627f2b commit 503e19a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
WASM_BUILD_TOOLCHAIN: nightly-2020-07-20

jobs:
get-variables:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -71,14 +68,16 @@ jobs:
~/.cargo/git
target
node/standalone/target
key: ${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }}
${{ runner.OS }}-build
-
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
toolchain: ${{ env.WASM_BUILD_TOOLCHAIN }}
# Toolchain is autodetected from `rust-toolchain` file
# https://github.com/actions-rs/toolchain#the-toolchain-file
#toolchain: ${{ env.WASM_BUILD_TOOLCHAIN }}
default: true
-
id: get-rust-versions
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# ![moonbeam](media/moonbeam-cover.jpg)
![Tests](https://github.com/PureStake/moonbeam/workflows/Tests/badge.svg)

Run an Ethereum compatible ~~parachain~~ (blockchain for now, until parachains are available) based on Substrate.
Run an Ethereum compatible ~~parachain~~ (and blockchain for now, until parachains are more stable) based on Substrate.

*See [moonbeam.network](https://moonbeam.network) for the moonbeam blockchain description.*
*See [www.substrate.io](https://www.substrate.io/) for substrate information.*

## Install (linux)

### Moonbeam
### Get the code

```bash
git clone -b moonbeam-tutorials https://github.com/PureStake/moonbeam
cd moonbeam
```

### Dependencies
### Rust developer environment

Install Substrate and its pre-requisites (including Rust):
Install Substrate pre-requisites (including Rust):
```bash
curl https://getsubstrate.io -sSf | bash -s -- --fast
```

## Build
## Build Parachain

Build Wasm and native code:
```bash
Expand All @@ -36,12 +36,18 @@ If a _cargo not found_ error appears in the terminal, manually add Rust to your
source $HOME/.cargo/env
```

## Build Standalone
```bash
cd node/standalone
cargo build --release
```

## Run

### Single node dev

```bash
./target/release/moonbase-standalone --dev
./node/standalone/target/release/moonbase-standalone --dev
```
### Docker image

Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2020-07-20
2 changes: 1 addition & 1 deletion scripts/_init_var.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mkdir -p $PARACHAIN_BUILD_FOLDER


if [ -z "$STANDALONE_BINARY" ]; then
STANDALONE_BINARY="target/release/moonbase-standalone"
STANDALONE_BINARY="node/standalone/target/release/moonbase-standalone"
fi

if [ -z "$PARACHAIN_BINARY" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/truffle/migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ var MyToken = artifacts.require("MyToken");

module.exports = function (deployer) {
// deployment steps
deployer.deploy(MyToken, "8000000000000000000000000", { gas: 4294967295 });
deployer.deploy(MyToken, "8000000000000000000000000");
};

0 comments on commit 503e19a

Please sign in to comment.