Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #2 from kcole16/initial-migration-work
Browse files Browse the repository at this point in the history
Initial migration work
  • Loading branch information
ilblackdragon committed Feb 13, 2020
2 parents d0197af + e0c7ef8 commit c5ee8e8
Show file tree
Hide file tree
Showing 4 changed files with 9,068 additions and 1,192 deletions.
52 changes: 49 additions & 3 deletions README.md
@@ -1,4 +1,4 @@
## To run on Ethereum:
## To run on Ganache:

```
npm install -g truffle
Expand All @@ -9,9 +9,55 @@ truffle migrate
npm run dev
```

## To run on NEAR:
## To run on NEAR TestNet:

```
npm install
npm install -g truffle
npm install -g near-shell
# Create account or authorize existing account with NEAR wallet.
near login
# Modify truffle.js to use your account in ACCOUNT_ID and run:
truffle migrate --network near
```

## To run on NEAR locally:

Install Rust:
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

Install and run NEARCore:
```
git clone https://github.com/nearprotocol/nearcore
./scripts/start_unittest.py --local
```

Install truffle and near shell:
```
npm install -g truffle
npm install -g near-shell
```

Clone and build EVM contract:
```
git clone https://github.com/nearprotocol/near-evm
cd near-evm
rustup target add wasm32-unknown-unknown
./build.sh
```

Deploy EVM contract locally:
```
export NODE_ENV=local
near create_account evm --masterAccount=test.near --keyPath=<path to --home for near, default ~/.near>/validator_key.json
near deploy evm --accountId=evm --wasmFile=res/near_evm.wasm
```

Run truffle migration:
```
truffle migrate --network near_local
```

0 comments on commit c5ee8e8

Please sign in to comment.