npm install -g truffle
npm install -g ganache-cli
ganache-cli --port 7545
truffle migrate
npm run dev
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
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