Here is the setup for my Apple M1 Pro:
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/bruno/.rustup
installed toolchains
--------------------
WS_PORT=8000 cargo test --features e2e-tests | |
warning: /Users/bruno/src/substrate-contracts-node/flipper/Cargo.toml: unused manifest key: dev-dependencies.ink_e2e.package_name | |
Compiling ink_e2e v4.0.1 (https://github.com/paritytech/ink.git?branch=cmichi-use-sc-chopstick-compatible#aa4345d2) | |
Compiling flipper v4.0.1 (/Users/bruno/src/substrate-contracts-node/flipper) | |
[1/*] Building cargo project | |
warning: /private/var/folders/1d/6s8fc3sd60n73mhszqvnks8w0000gn/T/cargo-contract_D68YJd/Cargo.toml: unused manifest key: dev-dependencies.ink_e2e.package_name | |
Finished release [optimized] target(s) in 0.19s | |
[1/*] Building cargo project | |
warning: /private/var/folders/1d/6s8fc3sd60n73mhszqvnks8w0000gn/T/cargo-contract_wZXPvf/Cargo.toml: unused manifest key: dev-dependencies.ink_e2e.package_name | |
Finished release [optimized] target(s) in 0.15s |
struct Foo; | |
struct Kian; | |
struct Shawn; | |
trait Bar { | |
type Buzz; | |
} | |
impl Bar for Foo { | |
type Buzz = u32; |
Here is the setup for my Apple M1 Pro:
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/bruno/.rustup
installed toolchains
--------------------
# NOTE: assumes `substrate-docs` is locally `docs` | |
# Build Spec | |
./target/release/polkadot build-spec --chain rococo-local --disable-default-bootnode > rococo-custom-2-plain.json | |
./target/release/polkadot build-spec --chain rococo-custom-2-plain.json --raw --disable-default-bootnode > rococo-custom-2-raw.json | |
# (OPTIONAL) modify from snipets to copy and make 3 & 4 validator plain specs | |
# ./target/release/polkadot build-spec --chain rococo-custom-3-plain.json --raw --disable-default-bootnode > rococo-custom-3-raw.json | |
# ./target/release/polkadot build-spec --chain rococo-custom-4-plain.json --raw --disable-default-bootnode > rococo-custom-4-raw.json |
[relaychain] | |
default_command = "../polkadot/target/release/polkadot" | |
default_args = [ "-lparachain=debug" ] | |
chain = "rococo-local" | |
[[relaychain.nodes]] | |
name = "alice" | |
validator = true |
// Collator flags | |
var flags = ["--", "--execution=wasm"]; | |
var config = { | |
relaychain: { | |
bin: "./bin/polkadot", | |
chain: "rococo-local", | |
nodes: [ | |
{ | |
name: "alice", |
{ | |
"relaychain": { | |
"bin": "./bin/polkadot", | |
"chain": "rococo-local", | |
"nodes": [ | |
{ | |
"name": "alice", | |
"wsPort": 9944, | |
"port": 30444 | |
}, |
{ | |
"relaychain": { | |
"bin": "./bin/polkadot", | |
"chain": "rococo-local", | |
"nodes": [ | |
{ | |
"name": "alice", | |
"wsPort": 9944, | |
"port": 30444 | |
}, |
const test = () => { | |
console.log("It works!"); | |
} | |
test(); |
const ugly = | |
(x) => true | |
console.log(ugly( | |
{ | |
name: 'sweater', | |
type: 'xmas' | |
} | |
) ? | |
'UGLY XMAS SWEATER' |