nphsu / substrate_template

0 stars 0 forks source link

Enable to fetch the amount of total supply from a contract #4

Open nphsu opened 4 years ago

nphsu commented 4 years ago

The goal is to connect a contract and frontend and display the data fetched from the contract.

When being deployed in substrate, the ERC20 contract is suppose to save the amount fo total supply.

mitsu1124 commented 4 years ago

@shunp erc20 contractにtotaly supplyを設定するのは、ink tutorial参照しながらできそうです。 つなぎこみ部分は、以下のtutorial参考にしたら、いけそうかなと思ったんですが、認識合ってるでしょうか。 https://substrate.dev/docs/en/tutorials/substrate-front-end/part-1-connect-to-a-node

nphsu commented 4 years ago

@mitsu1124 はい、あってます! 繋ぎ込み部分は僕も不明瞭な点が多いので、少し試行錯誤しながらになるかもしれません…!

mitsu1124 commented 4 years ago

@shunp

お疲れ様です!

今以下のコマンドでnodeを動かしてるんですが、

./shunp/substrate_template/basechain/target/release/substrate-erc20 --dev

これだと、ink! tutorialにあった、 contract deployのメニューがないんですね…

image

以下のink! tutorialでは、deploy contractのメニューがあり、そこからdeployしたんですよね。

https://substrate.dev/substrate-contracts-workshop/#/0/deploying-your-contract

deploy contractメニューを作る必要があるのか、それともコマンドラインからdeployできるのか等ご存知でしょうか。

ここクリアできたら、total supply取って来れそうです:)

mitsu1124 commented 4 years ago

あ、どこか認識誤ってたら教えて下さいm(__)m

nphsu commented 4 years ago

なんと、、 確かにチュートリアルはサイドバーから選択しますよね。 ローカルで動かしているノードに接続した場合は出ていないということですが、ここが仮にチュートリアルで使っているノードだったらコントラクトが現れるかどうかを確認することはできますか? そこが確かなら、僕らのノード実装に不足する部分がありそうですね(クローンの他に何か作業が必要なんでしょうか...)

mitsu1124 commented 4 years ago

たしかに。以下確認してみますね。

ローカルで動かしているノードに接続した場合は出ていないということですが、ここが仮にチュートリアルで使っているノードだったらコントラクトが現れるかどうかを確認することはできますか?

2020年1月11日(土) 18:23 shunp notifications@github.com:

なんと、、 確かにチュートリアルはサイドバーから選択しますよね。

ローカルで動かしているノードに接続した場合は出ていないということですが、ここが仮にチュートリアルで使っているノードだったらコントラクトが現れるかどうかを確認することはできますか? そこが確かなら、僕らのノード実装に不足する部分がありそうですね(クローンの他に何か作業が必要なんでしょうか...)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shunp/substrate_template/issues/4?email_source=notifications&email_token=AK3YZ25FIVZ4EL34JYRUKBTQ5GFYRA5CNFSM4KAVTITKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIV5ULI#issuecomment-573299245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3YZ24QGKVHHY6WYPL52YLQ5GFYRANCNFSM4KAVTITA .

nphsu commented 4 years ago

ありがとうございます!全てオープンソースのはずなので使いまわせるはずなんですが、、

mitsu1124 commented 4 years ago

substrate --dev

でnode動かした場合、メニューにcontractが表示されますね。

substrate commandで動かせるnodeのソース調べてみます。

image

mitsu1124 commented 4 years ago

気づいたんですが、以下のコマンドでnode立ち上げた場合、nodeのversionが1.0.0ですね。 substrate --dev で立ち上げた場合は2.0.0なのに。 なんでだろう(笑)

./shunp/substrate_template/basechain/target/release/substrate-erc20 --dev

image

mitsu1124 commented 4 years ago

@shunp 以下のページを参考にして、basechainを再構築してみます。 https://substrate.dev/docs/en/overview/getting-started/

nphsu commented 4 years ago

@mitsu1124 すごい、pre2.0っていうページができたんですね! ありがとうございます!これで表示されるといいな。。

mitsu1124 commented 4 years ago

@shunp 昨日の夜からcargo test を実施してるんですが、まだ終わらない…笑 すごいテストの量。

githubって容量制限ありましたっけ? build後のsubstrateが30GB越えるかもしれません苦笑

Mitsu@sumire-no-MacBook-Air:~/coding/shunp/substrate_template/basechain2$ cargo test --all
   Compiling proc-macro2 v1.0.6
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.11
   Compiling libc v0.2.66
   Compiling cfg-if v0.1.10
   Compiling log v0.4.8
   Compiling serde v1.0.103
   Compiling byteorder v1.3.2
   Compiling spin v0.5.2
   Compiling semver-parser v0.7.0
   Compiling autocfg v0.1.7
   Compiling memchr v2.2.1
   Compiling getrandom v0.1.13
   Compiling scopeguard v1.0.0
   Compiling ppv-lite86 v0.2.6
   Compiling typenum v1.11.2
   Compiling maybe-uninit v2.0.0
   Compiling rustc-demangle v0.1.16
   Compiling failure_derive v0.1.6
   Compiling opaque-debug v0.2.3
   Compiling byte-tools v0.3.1
   Compiling crunchy v0.2.2
   Compiling fake-simd v0.1.2
   Compiling rand_core v0.4.2
   Compiling static_assertions v1.1.0
   Compiling subtle v1.0.0
   Compiling keccak v0.1.0
   Compiling subtle v2.2.2
   Compiling smallvec v1.0.0
   Compiling arrayref v0.3.5
   Compiling arrayvec v0.5.1
   Compiling regex-syntax v0.6.12
   Compiling rustc-hex v2.0.1
   Compiling byte-slice-cast v0.3.4
   Compiling bitvec v0.15.2
   Compiling sp-std v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/std)
   Compiling arrayvec v0.4.12
   Compiling nodrop v0.1.14
   Compiling parity-wasm v0.41.0
   Compiling hash-db v0.15.2
   Compiling memory_units v0.3.0
   Compiling scopeguard v0.3.3
   Compiling environmental v1.0.2
   Compiling constant_time_eq v0.1.4
   Compiling tiny-keccak v2.0.1
   Compiling zeroize v0.9.3
   Compiling base58 v0.1.0
   Compiling hex v0.4.0
   Compiling integer-sqrt v0.1.2
   Compiling either v1.5.3
   Compiling itoa v0.4.4
   Compiling futures v0.1.29
   Compiling slab v0.4.2
   Compiling ryu v1.0.2
   Compiling fnv v1.0.6
   Compiling pin-utils v0.1.0-alpha.4
   Compiling futures-core v0.3.1
   Compiling futures-sink v0.3.1
   Compiling proc-macro-nested v0.1.3
   Compiling futures-io v0.3.1
   Compiling futures-task v0.3.1
   Compiling once_cell v0.2.4
   Compiling bitmask v0.5.0
   Compiling quick-error v1.2.2
   Compiling matches v0.1.8
   Compiling bytes v0.5.3
   Compiling pin-project-lite v0.1.1
   Compiling untrusted v0.7.0
   Compiling httparse v1.3.4
   Compiling percent-encoding v2.1.0
   Compiling bitflags v1.2.1
   Compiling futures-timer v2.0.2
   Compiling void v1.0.2
   Compiling protobuf v2.8.1
   Compiling data-encoding v2.1.2
   Compiling bs58 v0.3.0
   Compiling wasm-bindgen-shared v0.2.57
   Compiling futures-core-preview v0.3.0-alpha.19
   Compiling bumpalo v3.1.1
   Compiling futures-sink-preview v0.3.0-alpha.19
   Compiling base64 v0.11.0
   Compiling glob v0.3.0
   Compiling sha1 v0.6.0
   Compiling termcolor v1.0.5
   Compiling wasm-bindgen v0.2.57
   Compiling once_cell v1.2.0
   Compiling pkg-config v0.3.17
   Compiling crc32fast v1.2.0
   Compiling adler32 v1.0.4
   Compiling byteorder v0.5.3
   Compiling c_linked_list v1.1.1
   Compiling nohash-hasher v0.1.2
   Compiling parity-send-wrapper v0.1.0
   Compiling ipnet v2.1.0
   Compiling unicode-segmentation v1.6.0
   Compiling rayon-core v1.6.1
   Compiling target-lexicon v0.9.0
   Compiling anyhow v1.0.25
   Compiling cranelift-codegen-shared v0.50.0
   Compiling wasmtime-environ v0.8.0
   Compiling stable_deref_trait v1.1.1
   Compiling wasmparser v0.39.3
   Compiling plain v0.2.3
   Compiling more-asserts v0.2.1
   Compiling fallible-iterator v0.2.0
   Compiling slog v2.5.2
   Compiling arc-swap v0.4.4
   Compiling take_mut v0.2.2
   Compiling parity-bytes v0.1.1
   Compiling version_check v0.1.5
   Compiling ansi_term v0.11.0
   Compiling unicode-width v0.1.7
   Compiling strsim v0.8.0
   Compiling substrate-wasm-builder-runner v1.0.4 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/wasm-builder-runner)
   Compiling vec_map v0.8.1
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling linked-hash-map v0.5.2
   Compiling bindgen v0.49.4
   Compiling shlex v0.1.1
   Compiling peeking_take_while v0.1.2
   Compiling remove_dir_all v0.5.2
   Compiling interleaved-ordered v0.1.1
   Compiling try-lock v0.2.2
   Compiling core-foundation-sys v0.6.2
   Compiling native-tls v0.2.3
   Compiling percent-encoding v1.0.1
   Compiling safemem v0.3.3
   Compiling language-tags v0.2.2
   Compiling traitobject v0.1.0
   Compiling typeable v0.1.2
   Compiling version_check v0.9.1
   Compiling tower-service v0.3.0
   Compiling lazycell v1.2.1
   Compiling doc-comment v0.3.1
   Compiling unsigned-varint v0.2.3
   Compiling sysinfo v0.9.6
   Compiling bs58 v0.2.5
   Compiling target_info v0.1.0
   Compiling same-file v1.0.5
   Compiling difference v2.0.0
   Compiling sc-consensus-slots v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/consensus/slots)
   Compiling syn v0.15.44
   Compiling names v0.11.0
   Compiling hashbrown v0.5.0
   Compiling ansi_term v0.12.1
   Compiling app_dirs v1.2.1
   Compiling fixedbitset v0.1.9
   Compiling assert_matches v1.3.0
   Compiling substrate-build-script-utils v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/build-script-utils)
   Compiling multimap v0.4.0
   Compiling nix v0.14.1
   Compiling pdqselect v0.1.0
   Compiling sourcefile v0.1.4
   Compiling substrate-test-utils v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/test-utils)
   Compiling send_wrapper v0.3.0
   Compiling chain-spec-builder v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/utils/chain-spec-builder)
   Compiling lazy_static v1.4.0
   Compiling semver v0.6.0
   Compiling lock_api v0.3.2
   Compiling num-traits v0.2.10
   Compiling rand_chacha v0.1.1
   Compiling rand_pcg v0.1.2
   Compiling rand v0.6.5
   Compiling num-integer v0.1.41
   Compiling num-bigint v0.2.3
   Compiling num-rational v0.2.2
   Compiling hashbrown v0.6.3
   Compiling crossbeam-utils v0.7.0
   Compiling crossbeam-epoch v0.8.0
   Compiling indexmap v1.3.0
   Compiling block-padding v0.1.5
   Compiling rand_core v0.3.1
   Compiling c2-chacha v0.2.3
   Compiling rlp v0.4.4
   Compiling unicode-normalization v0.1.11
   Compiling trie-root v0.15.2
   Compiling lock_api v0.1.5
   Compiling itertools v0.8.2
   Compiling wasmi-validation v0.3.0
   Compiling async-macros v2.0.0
   Compiling futures-channel v0.3.1
   Compiling humantime v1.3.0
   Compiling unicode-bidi v0.3.4
   Compiling quicksink v0.1.1
   Compiling tokio-sync v0.1.7
   Compiling http v0.2.0
   Compiling futures-channel-preview v0.3.0-alpha.19
   Compiling clang-sys v0.28.1
   Compiling miniz_oxide v0.3.5
   Compiling heck v0.3.1
   Compiling owning_ref v0.4.0
   Compiling textwrap v0.11.0
   Compiling nom v4.2.3
   Compiling unicase v1.4.2
   Compiling substrate-test-runtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/test-utils/runtime)
   Compiling node-runtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/runtime)
   Compiling sp-runtime-interface-test-wasm v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface/test-wasm)
   Compiling sc-runtime-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/executor/runtime-test)
   Compiling node-template-runtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node-template/runtime)
   Compiling linked_hash_set v0.1.3
   Compiling unicase v2.6.0
   Compiling test-case v0.3.3
   Compiling walkdir v2.2.9
   Compiling pretty_assertions v0.6.1
   Compiling petgraph v0.4.13
   Compiling lru v0.1.17
   Compiling thread_local v0.3.6
   Compiling tracing-core v0.1.7
   Compiling crossbeam-utils v0.6.6
   Compiling build-helper v0.1.1
   Compiling rand_isaac v0.1.1
   Compiling rand_xorshift v0.1.1
   Compiling rand_hc v0.1.0
   Compiling impl-rlp v0.2.1
   Compiling idna v0.2.0
   Compiling idna v0.1.5
   Compiling futures-util-preview v0.3.0-alpha.19
   Compiling http-body v0.3.1
   Compiling kv-log-macro v1.0.4
   Compiling want v0.2.0
   Compiling log v0.3.9
   Compiling want v0.3.0
   Compiling quote v1.0.2
   Compiling num_cpus v1.11.1
   Compiling jobserver v0.1.17
   Compiling rand_os v0.1.3
   Compiling rand_jitter v0.1.4
   Compiling errno v0.2.4
   Compiling iovec v0.1.4
   Compiling net2 v0.2.33
   Compiling time v0.1.42
   Compiling atty v0.2.13
   Compiling rand v0.4.6
   Compiling parking_lot_core v0.7.0
   Compiling get_if_addrs v0.5.3
   Compiling dirs-sys v0.3.4
   Compiling mach v0.2.3
   Compiling fdlimit v0.1.1
   Compiling rpassword v4.0.3
   Compiling fs2 v0.4.3
   Compiling async-task v1.0.0
   Compiling tokio-executor v0.1.9
   Compiling crossbeam-queue v0.1.2
   Compiling hashbrown v0.1.8
   Compiling base64 v0.10.1
   Compiling dns-parser v0.8.0
   Compiling fxhash v0.2.1
   Compiling regex-automata v0.1.8
   Compiling base64 v0.9.3
   Compiling pwasm-utils v0.12.0
   Compiling rand_xoshiro v0.1.0
   Compiling parity-wasm v0.32.0
   Compiling smallvec v0.6.13
   Compiling uint v0.8.2
   Compiling hash256-std-hasher v0.15.2
   Compiling tiny-keccak v1.5.0
   Compiling blake2-rfc v0.2.18
   Compiling generic-array v0.12.3
   Compiling url v2.1.0
   Compiling url v1.7.2
   Compiling futures-timer v0.4.0
   Compiling tokio-sync v0.2.0-alpha.6
   Compiling quote v0.6.13
   Compiling security-framework-sys v0.3.3
   Compiling core-foundation v0.6.4
   Compiling mime v0.2.6
   Compiling futures-cpupool v0.1.8
   Compiling threadpool v1.7.1
   Compiling cc v1.0.48
   Compiling aho-corasick v0.7.6
   Compiling tokio v0.2.4
   Compiling csv-core v0.1.6
   Compiling rand_core v0.5.1
   Compiling bytes v0.4.12
   Compiling mio v0.6.21
   Compiling clap v2.33.0
   Compiling rand v0.3.23
   Compiling parking_lot v0.10.0
   Compiling directories v2.0.2
   Compiling region v2.1.2
   Compiling tokio-timer v0.2.12
   Compiling tokio-current-thread v0.1.6
   Compiling wasm-gc-api v0.1.11
   Compiling crossbeam-channel v0.4.0
   Compiling crossbeam-queue v0.2.0
   Compiling keccak-hasher v0.15.2
   Compiling gimli v0.19.0
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling crypto-mac v0.7.0
   Compiling block-cipher-trait v0.6.2
   Compiling stream-cipher v0.3.2
   Compiling tokio-executor v0.2.0-alpha.6
   Compiling ctrlc v3.1.3
   Compiling security-framework v0.3.4
   Compiling hyper v0.10.16
   Compiling cmake v0.1.42
   Compiling regex v1.3.1
   Compiling backtrace-sys v0.1.32
   Compiling clear_on_drop v0.2.3
   Compiling ring v0.16.9
   Compiling libz-sys v1.0.25
   Compiling zstd-sys v1.4.15+zstd.1.4.4
   Compiling wasmtime-runtime v0.8.0
   Compiling libloading v0.5.2
   Compiling tokio-util v0.2.0
   Compiling cexpr v0.3.6
   Compiling weedle v0.10.0
   Compiling rand_chacha v0.2.1
   Compiling rand_os v0.2.2
   Compiling rand_xoshiro v0.3.1
   Compiling tokio-io v0.1.12
   Compiling http v0.1.21
   Compiling tokio-buf v0.1.1
   Compiling string v0.2.1
   Compiling mio-uds v0.6.7
   Compiling mio-extras v2.0.6
   Compiling synstructure v0.12.3
   Compiling wasm-bindgen-backend v0.2.57
   Compiling syn-mid v0.4.0
   Compiling cuckoofilter v0.3.2
   Compiling serde_derive v1.0.103
   Compiling proc-macro-hack v0.5.11
   Compiling sp-debug-derive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/debug-derive)
   Compiling impl-trait-for-tuples v0.1.3
   Compiling derive_more v0.99.2
   Compiling tracing-attributes v0.1.5
   Compiling frame-support-procedural-tools-derive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural/tools/derive)
   Compiling pin-project-internal v0.4.6
   Compiling thiserror-impl v1.0.9
   Compiling asn1_der_derive v0.1.2
   Compiling libp2p-core-derive v0.14.0-alpha.1
   Compiling strum_macros v0.16.0
   Compiling scroll_derive v0.10.1
   Compiling slog_derive v0.2.0
   Compiling rustversion v1.0.0
   Compiling enumflags2_derive v0.6.2
   Compiling trie-standardmap v0.15.2
   Compiling hmac v0.7.1
   Compiling pbkdf2 v0.3.0
   Compiling blake2 v0.8.1
   Compiling sha2 v0.8.0
   Compiling sha3 v0.8.2
   Compiling sha-1 v0.8.1
   Compiling ctr v0.3.2
   Compiling aes-soft v0.3.3
   Compiling twofish v0.2.0
   Compiling wabt-sys v0.7.0
   Compiling Inflector v0.11.4
   Compiling env_logger v0.6.2
   Compiling env_logger v0.7.1
   Compiling rand v0.7.2
   Compiling tokio-codec v0.1.1
   Compiling h2 v0.1.26
   Compiling http-body v0.1.0
   Compiling zeroize_derive v1.0.0
   Compiling malloc_size_of_derive v0.1.1
   Compiling parity-util-mem-derive v0.1.0
   Compiling wasm-bindgen-macro-support v0.2.57
   Compiling wasm-bindgen-webidl v0.2.57
   Compiling paste-impl v0.1.6
   Compiling futures-macro v0.3.1
   Compiling hex-literal-impl v0.2.1
   Compiling tracing v0.1.10
   Compiling thiserror v1.0.9
   Compiling asn1_der v0.6.3
   Compiling scroll v0.10.1
   Compiling pin-project v0.4.6
   Compiling enumflags2 v0.6.2
   Compiling strum v0.16.0
   Compiling proc-macro-error v0.4.4
   Compiling proc-macro-error-attr v0.4.3
   Compiling hmac-drbg v0.2.0
   Compiling parity-multihash v0.1.3
   Compiling aes-ctr v0.3.0
   Compiling file-per-thread-logger v0.1.2
   Compiling fixed-hash v0.5.1
   Compiling twox-hash v1.5.0
   Compiling tempfile v3.1.0
   Compiling ws v0.9.1
   Compiling quickcheck v0.9.0
   Compiling const-random-macro v0.1.6
   Compiling zeroize v1.1.0
   Compiling parity-util-mem v0.3.0
   Compiling paste v0.1.6
   Compiling hex-literal v0.2.1
   Compiling wasm-bindgen-macro v0.2.57
   Compiling futures-util v0.3.1
   Compiling goblin v0.1.2
   Compiling libsecp256k1 v0.3.4
   Compiling wasmi v0.6.2
   Compiling curve25519-dalek v1.2.3
   Compiling flate2 v1.0.13
   Compiling web-sys v0.3.34
   Compiling const-random v0.1.6
   Compiling curve25519-dalek v2.0.0
   Compiling merlin v1.3.0
   Compiling semver v0.9.0
   Compiling toml v0.5.5
   Compiling impl-serde v0.2.3
   Compiling serde_json v1.0.44
   Compiling cranelift-entity v0.50.0
   Compiling chrono v0.4.10
   Compiling bincode v1.2.1
   Compiling string-interner v0.7.1
   Compiling erased-serde v0.3.9
   Compiling bstr v0.2.8
   Compiling parity-multiaddr v0.5.0
   Compiling futures-executor v0.3.1
   Compiling h2 v0.2.1
   Compiling sp-wasm-interface v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/wasm-interface)
   Compiling tokio-tls v0.2.1
   Compiling ahash v0.2.18
   Compiling ed25519-dalek v1.0.0-pre.3
   Compiling rustc_version v0.2.3
   Compiling sp-storage v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/storage)
   Compiling cranelift-codegen-meta v0.50.0
   Compiling cranelift-bforest v0.50.0
   Compiling proc-macro-crate v0.1.4
   Compiling sp-serializer v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/serializer)
   Compiling jsonrpc-core v14.0.5
   Compiling tinytemplate v1.0.2
   Compiling trybuild v1.0.18
   Compiling cargo_metadata v0.9.1
   Compiling vergen v3.0.4
   Compiling faerie v0.13.0
   Compiling globset v0.4.4
   Compiling csv v1.1.1
   Compiling futures v0.3.1
   Compiling structopt-derive v0.4.0
   Compiling js-sys v0.3.34
   Compiling console_error_panic_hook v0.1.6
   Compiling sp-externalities v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/externalities)
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling parking_lot_core v0.4.0
   Compiling memoffset v0.5.3
   Compiling safe-mix v1.0.0
   Compiling snow v0.6.2
   Compiling raw-cpuid v7.0.3
   Compiling hyper v0.12.35
   Compiling cast v0.2.3
   Compiling hyper v0.13.1
   Compiling frame-support-procedural-tools v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural/tools)
   Compiling parity-scale-codec-derive v1.1.1
   Compiling sp-runtime-interface-proc-macro v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface/proc-macro)
   Compiling sp-api-proc-macro v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/api/proc-macro)
   Compiling jsonrpc-derive v14.0.5
   Compiling sc-chain-spec-derive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/chain-spec/derive)
   Compiling pallet-staking-reward-curve v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/staking/reward-curve)
   Compiling substrate-wasm-builder v1.0.8 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/wasm-builder)
   Compiling slog-scope v4.3.0
   Compiling slog-json v2.3.0
   Compiling futures_codec v0.3.4
   Compiling rw-stream-sink v0.2.0
   Compiling soketto v0.3.1
   Compiling yamux v0.4.0
   Compiling exit-future v0.2.0
   Compiling x25519-dalek v0.5.2
   Compiling webpki v0.21.0
   Compiling sct v0.6.0
   Compiling structopt v0.3.7
   Compiling wasm-bindgen-futures v0.4.7
   Compiling memory-db v0.18.0
   Compiling trie-db v0.18.1
   Compiling lru v0.4.3
   Compiling frame-support-procedural v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural)
   Compiling cranelift-codegen v0.50.0
   Compiling parity-scale-codec v1.1.0
   Compiling unsigned-varint v0.3.0
   Compiling webpki-roots v0.17.0
   Compiling webpki-roots v0.18.0
   Compiling rustls v0.16.0
   Compiling ct-logs v0.6.0
   Compiling console_log v0.1.2
   Compiling parity-multihash v0.2.1
   Compiling multistream-select v0.7.0
   Compiling parking_lot v0.7.1
   Compiling async-tls v0.6.0
   Compiling tokio-rustls v0.10.2
   Compiling criterion-plot v0.4.0
   Compiling criterion-plot v0.3.1
   Compiling parity-multiaddr v0.7.0
   Compiling impl-codec v0.4.2
   Compiling sp-arithmetic v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/arithmetic)
   Compiling fork-tree v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/fork-tree)
   Compiling broadcaster v0.2.6
   Compiling wasm-timer v0.2.4
   Compiling parity-util-mem v0.4.1
   Compiling tokio-reactor v0.1.11
   Compiling jsonrpc-pubsub v14.0.5
   Compiling finality-grandpa v0.10.2
   Compiling once_cell v0.1.8
   Compiling crossbeam-deque v0.7.2
   Compiling primitive-types v0.6.1
   Compiling kvdb v0.3.1
   Compiling tokio-tcp v0.1.3
   Compiling tokio-udp v0.1.5
   Compiling tokio-uds v0.2.5
   Compiling async-std v1.2.0
   Compiling tokio-threadpool v0.1.17
   Compiling kvdb-memorydb v0.3.1
   Compiling websocket-base v0.24.0
   Compiling sp-runtime-interface v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface)
   Compiling evm-core v0.14.0
   Compiling rayon v1.2.1
   Compiling kvdb-web v0.3.1
   Compiling tokio-fs v0.1.6
   Compiling websocket v0.24.0
   Compiling cranelift-frontend v0.50.0
   Compiling cranelift-native v0.50.0
   Compiling evm-runtime v0.14.1
   Compiling grafana-data-source v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/grafana-data-source)
   Compiling tokio v0.1.22
   Compiling criterion v0.3.0
   Compiling criterion v0.2.11
   Compiling cranelift-wasm v0.50.0
   Compiling evm-gasometer v0.14.0
   Compiling jsonrpc-server-utils v14.0.5
   Compiling grafana-data-source-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/grafana-data-source/test)
   Compiling trie-bench v0.18.0
   Compiling evm v0.14.1
   Compiling jsonrpc-ws-server v14.0.5
   Compiling hyper-tls v0.3.2
   Compiling hyper-rustls v0.17.1
   Compiling jsonrpc-http-server v14.0.5
   Compiling wabt v0.9.2
   Compiling fs-swap v0.2.4
   Compiling backtrace v0.3.40
   Compiling failure v0.1.6
   Compiling sp-panic-handler v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/panic-handler)
   Compiling schnorrkel v0.8.5
   Compiling tiny-bip39 v0.6.2
   Compiling libp2p-core v0.14.0-alpha.1
   Compiling which v2.0.1
   Compiling jsonrpc-client-transports v14.0.5
   Compiling prost-derive v0.5.0
   Compiling substrate-bip39 v0.3.1
   Compiling prost-build v0.5.0
   Compiling jsonrpc-core-client v14.0.5
   Compiling node-template v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node-template)
   Compiling sp-core v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/core)
   Compiling libp2p-swarm v0.4.0-alpha.1
   Compiling libp2p-mplex v0.14.0-alpha.1
   Compiling libp2p-secio v0.14.0-alpha.1
   Compiling libp2p-tcp v0.14.0-alpha.1
   Compiling libp2p-uds v0.14.0-alpha.1
   Compiling libp2p-deflate v0.6.0-alpha.1
   Compiling libp2p-yamux v0.14.0-alpha.1
   Compiling libp2p-websocket v0.14.0-alpha.1
   Compiling libp2p-plaintext v0.14.0-alpha.1
   Compiling libp2p-noise v0.12.0-alpha.1
   Compiling libp2p-dns v0.14.0-alpha.1
   Compiling libp2p-wasm-ext v0.7.0-alpha.1
   Compiling prost v0.5.0
   Compiling sp-trie v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/trie)
   Compiling sp-inherents v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/inherents)
   Compiling frame-metadata v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/metadata)
   Compiling sc-executor-common v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/executor/common)
   Compiling sc-state-db v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/state-db)
   Compiling sp-rpc v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/rpc)
   Compiling libp2p-floodsub v0.14.0-alpha.1
   Compiling libp2p-identify v0.14.0-alpha.1
   Compiling libp2p-kad v0.14.0-alpha.1
   Compiling libp2p-ping v0.14.0-alpha.1
   Compiling libp2p-mdns v0.14.0-alpha.1
   Compiling prost-types v0.5.0
   Compiling sp-finality-tracker v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/finality-tracker)
   Compiling sp-state-machine v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine)
   Compiling librocksdb-sys v6.2.4
   Compiling sc-executor-wasmi v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/executor/wasmi)
   Compiling libp2p v0.14.0-alpha.1
   Compiling sp-io v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/io)
   Compiling sc-telemetry v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/telemetry)
   Compiling sc-peerset v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/peerset)
   Compiling sp-application-crypto v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/application-crypto)
   Compiling sp-sandbox v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/sandbox)
   Compiling sc-authority-discovery v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/authority-discovery)
   Compiling sc-tracing v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/tracing)
   Compiling sp-runtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime)
   Compiling sc-keystore v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/keystore)
   Compiling sp-version v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/version)
   Compiling frame-support v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support)
   Compiling sp-keyring v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/keyring)
   Compiling sp-staking v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/staking)
   Compiling sp-authorship v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/authorship)
   Compiling sp-phragmen v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/phragmen)
   Compiling sc-rpc-server v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/rpc-servers)
   Compiling node-primitives v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/primitives)
   Compiling sp-test-primitives v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/test-primitives)
   Compiling sp-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/api)
   Compiling sp-consensus v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/consensus/common)
   Compiling frame-system v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/system)
   Compiling frame-support-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/test)
   Compiling sp-timestamp v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/timestamp)
   Compiling sp-block-builder v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/block-builder)
   Compiling sp-transaction-pool v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/transaction-pool)
   Compiling sp-session v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/session)
   Compiling sp-offchain v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/offchain)
   Compiling frame-system-rpc-runtime-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/system/rpc/runtime-api)
   Compiling pallet-transaction-payment-rpc-runtime-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/transaction-payment/rpc/runtime-api)
   Compiling sp-finality-grandpa v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/finality-grandpa)
   Compiling sp-authority-discovery v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/authority-discovery)
   Compiling pallet-contracts-rpc-runtime-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/contracts/rpc/runtime-api)
   Compiling sp-consensus-pow v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/consensus/pow)
   Compiling sp-consensus-babe v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/consensus/babe)
   Compiling sp-consensus-aura v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/consensus/aura)
   Compiling sc-transaction-graph v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/transaction-pool/graph)
   Compiling sc-rpc-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/rpc-api)
   Compiling sp-blockchain v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/blockchain)
   Compiling substrate-frame-rpc-support v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/frame/rpc/support)
   Compiling pallet-contracts-rpc v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/contracts/rpc)
   Compiling pallet-transaction-payment-rpc v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/transaction-payment/rpc)
   Compiling pallet-timestamp v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/timestamp)
   Compiling frame-executive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/executive)
   Compiling pallet-balances v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/balances)
   Compiling pallet-transaction-payment v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/transaction-payment)
   Compiling pallet-finality-tracker v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/finality-tracker)
   Compiling pallet-indices v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/indices)
   Compiling pallet-authorship v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/authorship)
   Compiling pallet-randomness-collective-flip v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/randomness-collective-flip)
   Compiling pallet-sudo v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/sudo)
   Compiling pallet-contracts v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/contracts)
   Compiling pallet-utility v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/utility)
   Compiling pallet-elections-phragmen v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/elections-phragmen)
   Compiling pallet-membership v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/membership)
   Compiling pallet-collective v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/collective)
   Compiling pallet-nicks v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/nicks)
   Compiling pallet-democracy v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/democracy)
   Compiling pallet-scored-pool v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/scored-pool)
   Compiling pallet-society v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/society)
   Compiling pallet-assets v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/assets)
   Compiling pallet-generic-asset v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/generic-asset)
   Compiling pallet-recovery v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/recovery)
   Compiling pallet-identity v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/identity)
   Compiling pallet-elections v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/elections)
   Compiling pallet-session v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/session)
   Compiling pallet-treasury v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/treasury)
   Compiling pallet-offences v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/offences)
   Compiling pallet-evm v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/evm)
   Compiling pallet-example v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/example)
   Compiling pallet-babe v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/babe)
   Compiling pallet-grandpa v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/grandpa)
   Compiling pallet-staking v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/staking)
warning: unused import: `PhragmenStakedAssignment`
   --> frame/staking/src/lib.rs:286:36
    |
286 | use sp_phragmen::{ExtendedBalance, PhragmenStakedAssignment};
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

   Compiling pallet-authority-discovery v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/authority-discovery)
   Compiling pallet-im-online v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/im-online)
   Compiling pallet-aura v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/aura)
warning: unused variable: `to_votes`
    --> frame/staking/src/lib.rs:1511:8
     |
1511 |             let to_votes = |b: BalanceOf<T>|
     |                 ^^^^^^^^ help: consider prefixing with an underscore: `_to_votes`
     |
     = note: `#[warn(unused_variables)]` on by default

warning: unused import: `PhragmenStakedAssignment`
   --> frame/staking/src/lib.rs:286:36
    |
286 | use sp_phragmen::{ExtendedBalance, PhragmenStakedAssignment};
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

warning: variable does not need to be mutable
    --> frame/staking/src/lib.rs:1516:8
     |
1516 |             let mut supports = sp_phragmen::build_support_map::<_, _, _, T::CurrencyToVote>(
     |                 ----^^^^^^^^
     |                 |
     |                 help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

warning: unused variable: `to_votes`
    --> frame/staking/src/lib.rs:1511:8
     |
1511 |             let to_votes = |b: BalanceOf<T>|
     |                 ^^^^^^^^ help: consider prefixing with an underscore: `_to_votes`
     |
     = note: `#[warn(unused_variables)]` on by default

   Compiling zstd-safe v2.0.3+zstd.1.4.4
   Compiling zstd v0.5.1+zstd.1.4.4
warning: variable does not need to be mutable
    --> frame/staking/src/lib.rs:1516:8
     |
1516 |             let mut supports = sp_phragmen::build_support_map::<_, _, _, T::CurrencyToVote>(
     |                 ----^^^^^^^^
     |                 |
     |                 help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

   Compiling wasmtime-debug v0.8.0
   Compiling wasmtime-jit v0.8.0
   Compiling sc-executor-wasmtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/executor/wasmtime)
   Compiling sc-executor v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/executor)
   Compiling sc-client-api v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/api)
   Compiling node-executor v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/executor)
   Compiling sp-runtime-interface-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface/test)
   Compiling sc-block-builder v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/block-builder)
   Compiling sc-transaction-pool v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/transaction-pool)
   Compiling sc-consensus-uncles v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/consensus/uncles)
   Compiling sc-consensus-pow v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/consensus/pow)
   Compiling sc-client v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client)
   Compiling sc-network v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/network)
   Compiling sc-rpc v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/rpc)
   Compiling substrate-frame-rpc-system v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/frame/rpc/system)
   Compiling sc-basic-authority v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/basic-authorship)
   Compiling sc-consensus-babe v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/consensus/babe)
   Compiling sc-consensus-aura v0.8.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/consensus/aura)
   Compiling node-rpc v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/rpc)
   Compiling subkey v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/utils/subkey)
   Compiling node-rpc-client v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/rpc-client)
   Compiling sc-chain-spec v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/chain-spec)
   Compiling sc-offchain v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/offchain)
   Compiling sc-network-gossip v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/network-gossip)
   Compiling sc-finality-grandpa v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/finality-grandpa)
   Compiling rocksdb v0.13.0
   Compiling kvdb-rocksdb v0.4.1
   Compiling sc-client-db v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/db)
   Compiling substrate-test-client v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/test-utils/client)
   Compiling sc-service v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/service)
   Compiling substrate-test-runtime-client v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/test-utils/runtime/client)
   Compiling node-testing v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/testing)
   Compiling sc-network-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/network/test)
   Compiling sp-application-crypto-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/application-crypto/test)
   Compiling sc-cli v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/cli)
   Compiling sc-service-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/client/service/test)
   Compiling browser-utils v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/utils/browser)
   Compiling node-transaction-factory v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/transaction-factory)
   Compiling node-cli v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/bin/node/cli)
   Compiling sp-api-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/api/test)
    Finished test [unoptimized + debuginfo] target(s) in 67m 23s
     Running target/debug/deps/browser_utils-cc0972b326e5e8a1

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/chain_spec_builder-88af59ada01e1522

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/fork_tree-cc6e37612ff38e3e

running 12 tests
test test::finalize_with_ancestor_works ... ok
test test::finalize_works ... ok
test test::finalize_with_descendent_works ... ok
test test::finalize_root_works ... ok
test test::find_node_backtracks_after_finding_highest_descending_node ... ok
test test::find_node_works ... ok
test test::import_doesnt_add_duplicates ... ok
test test::import_doesnt_revert ... ok
test test::iter_iterates_in_preorder ... ok
test test::minimizes_calls_to_is_descendent_of ... ok
test test::prune_works ... ok
test test::tree_rebalance ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_executive-9f5b3420a65369c6

running 10 tests
test tests::block_hooks_weight_is_stored ... ok
test tests::bad_extrinsic_not_inserted ... ok
test tests::balance_transfer_dispatch_works ... ok
test tests::block_import_of_bad_extrinsic_root_fails ... ok
test tests::block_import_works ... ok
test tests::block_import_of_bad_state_root_fails ... ok
test tests::validate_unsigned ... ok
test tests::can_pay_for_tx_fee_on_full_lock ... ok
test tests::block_weight_and_size_is_stored_per_tx ... ok
test tests::block_weight_limit_enforced ... ok

test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_metadata-58b836899783b980

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_support-9398dc8e7b2d5645

running 25 tests
test dispatch::tests::on_finalize_should_work ... ok
test dispatch::tests::compact_attr ... ok
test dispatch::tests::module_json_metadata ... ok
test dispatch::tests::on_initialize_should_work ... ok
test event::tests::outer_event_metadata ... ok
test dispatch::tests::weight_should_attach_to_call_enum ... ok
test dispatch::tests::encode_is_correct_and_decode_works ... ok
test dispatch::tests::weight_for_block_hooks ... ok
test hash::tests::test_twox_64_concat ... ok
test hash::tests::test_blake2_128_concat ... ok
test metadata::tests::runtime_metadata ... ok
test storage::generator::double_map::test::iter_prefix_works ... ok
test storage::generator::tests::value_translate_works ... ok
test tests::double_map_append_should_work ... ok
test storage::test::prefixed_map_works ... ok
test tests::double_map_basic_insert_remove_remove_prefix_should_work ... ok
test tests::linked_map_basic_insert_remove_should_work ... ok
test tests::double_map_swap_works ... ok
test tests::linked_map_issue_3318 ... ok
test tests::store_metadata ... ok
test unsigned::test_partial_and_full_call::test_full_unsigned::used ... ok
test unsigned::test_partial_and_full_call::test_not_full_unsigned::used ... ok
test tests::linked_map_enumeration_and_head_should_work ... ok
test tests::linked_map_swap_works ... ok
test storage::generator::tests::linked_map_translate_works ... ok

test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_support_procedural-793f6ecbc45b1352

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_support_procedural_tools-94901d006d384c1d

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_support_procedural_tools_derive-18d67dee33481a43

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_support_test-264a564dacf74ec0

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/construct_runtime_ui-dd03e09ba17d1be3

running 1 test
    Updating crates.io index
  Downloaded backtrace v0.3.41
   Compiling proc-macro2 v1.0.7
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.13
   Compiling libc v0.2.66
    Checking cfg-if v0.1.10
   Compiling typenum v1.11.2
   Compiling getrandom v0.1.14
   Compiling byteorder v1.3.2
   Compiling serde v1.0.104
   Compiling autocfg v0.1.7
    Checking rand_core v0.4.2
   Compiling cc v1.0.50
   Compiling autocfg v1.0.0
   Compiling semver-parser v0.7.0
   Compiling memchr v2.3.0
   Compiling maybe-uninit v2.0.0
    Checking ppv-lite86 v0.2.6
   Compiling crunchy v0.2.2
    Checking byte-tools v0.3.1
    Checking subtle v1.0.0
    Checking opaque-debug v0.2.3
    Checking fake-simd v0.1.2
    Checking rustc-demangle v0.1.16
    Checking subtle v2.2.2
   Compiling failure_derive v0.1.6
    Checking lazy_static v1.4.0
    Checking bitvec v0.15.2
    Checking byte-slice-cast v0.3.5
    Checking arrayvec v0.5.1
    Checking scopeguard v0.3.3
    Checking parity-wasm v0.41.0
   Compiling log v0.4.8
    Checking sp-std v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/std)
   Compiling regex-syntax v0.6.13
    Checking static_assertions v1.1.0
    Checking rustc-hex v2.1.0
    Checking keccak v0.1.0
    Checking hash-db v0.15.2
    Checking memory_units v0.3.0
   Compiling arrayvec v0.4.12
    Checking zeroize v0.9.3
   Compiling tiny-keccak v2.0.1
    Checking scopeguard v1.0.0
    Checking environmental v1.1.1
    Checking nodrop v0.1.14
    Checking arrayref v0.3.5
    Checking constant_time_eq v0.1.5
    Checking base58 v0.1.0
    Checking hex v0.4.0
    Checking smallvec v1.1.0
   Compiling ryu v1.0.2
    Checking integer-sqrt v0.1.2
    Checking itoa v0.4.4
    Checking termcolor v1.1.0
    Checking glob v0.3.0
    Checking once_cell v0.2.4
    Checking bitmask v0.5.0
    Checking ansi_term v0.11.0
    Checking difference v2.0.0
    Checking rand_core v0.3.1
   Compiling semver v0.9.0
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
   Compiling hashbrown v0.6.3
   Compiling num-traits v0.2.11
   Compiling num-integer v0.1.42
   Compiling num-bigint v0.2.5
   Compiling num-rational v0.2.3
    Checking block-padding v0.1.5
    Checking c2-chacha v0.2.3
    Checking thread_local v1.0.1
    Checking tracing-core v0.1.9
   Compiling clear_on_drop v0.2.3
   Compiling backtrace-sys v0.1.32
    Checking lock_api v0.1.5
    Checking wasmi-validation v0.3.0
    Checking trie-root v0.15.2
    Checking lock_api v0.3.3
    Checking pretty_assertions v0.6.1
    Checking rand_hc v0.1.0
    Checking rand_xorshift v0.1.1
    Checking rand_isaac v0.1.1
   Compiling rustc_version v0.2.3
    Checking rand_jitter v0.1.4
    Checking rand_os v0.1.3
   Compiling quote v1.0.2
    Checking hashbrown v0.1.8
    Checking generic-array v0.12.3
   Compiling parking_lot_core v0.4.0
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
    Checking smallvec v0.6.13
    Checking uint v0.8.2
    Checking hash256-std-hasher v0.15.2
    Checking aho-corasick v0.7.6
   Compiling rand_core v0.5.1
    Checking blake2-rfc v0.2.18
    Checking digest v0.8.1
    Checking crypto-mac v0.7.0
    Checking block-buffer v0.7.3
   Compiling rand_chacha v0.2.1
    Checking backtrace v0.3.41
    Checking regex v1.3.3
    Checking hmac v0.7.1
    Checking pbkdf2 v0.3.0
    Checking sha2 v0.8.1
test ui ... test ui has been running for over 60 seconds             ] 173/256: parking_lot_co...
   Compiling curve25519-dalek v1.2.3
   Compiling rand v0.7.3
    Checking sp-panic-handler v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/panic-handler)
    Checking hmac-drbg v0.2.0
   Compiling Inflector v0.11.4
    Checking parking_lot v0.7.1
    Checking once_cell v0.1.8
    Checking fixed-hash v0.5.2
    Checking libsecp256k1 v0.3.4
    Checking twox-hash v1.5.0
    Checking wasmi v0.6.2
   Compiling synstructure v0.12.3
   Compiling serde_derive v1.0.104
   Compiling zeroize_derive v1.0.0
   Compiling proc-macro-hack v0.5.11
   Compiling sp-debug-derive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/debug-derive)
   Compiling impl-trait-for-tuples v0.1.3
   Compiling malloc_size_of_derive v0.1.1
   Compiling frame-support-procedural-tools-derive v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural/tools/derive)
   Compiling derive_more v0.99.2
   Compiling tracing-attributes v0.1.6
    Checking zeroize v1.1.0
   Compiling const-random-macro v0.1.6
   Compiling paste-impl v0.1.6
    Checking failure v0.1.6
    Checking parity-util-mem v0.3.0
    Checking merlin v1.3.0
    Checking curve25519-dalek v2.0.0
    Checking tracing v0.1.11
    Checking const-random v0.1.6
    Checking tiny-bip39 v0.6.2
    Checking sp-wasm-interface v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/wasm-interface)
    Checking paste v0.1.6
    Checking schnorrkel v0.8.5
    Checking ed25519-dalek v1.0.0-pre.3
    Checking ahash v0.2.18
    Checking substrate-bip39 v0.3.1
    Checking memory-db v0.18.0
    Checking trie-db v0.18.1
    Checking impl-serde v0.2.3
    Checking impl-serde v0.3.0
    Checking serde_json v1.0.44
    Checking toml v0.5.5
    Checking sp-storage v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/storage)
    Checking sp-externalities v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/externalities)
    Checking trybuild v1.0.19
   Compiling proc-macro-crate v0.1.4
   Compiling frame-support-procedural-tools v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural/tools)
   Compiling parity-scale-codec-derive v1.1.1
   Compiling sp-runtime-interface-proc-macro v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface/proc-macro)
   Compiling frame-support-procedural v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/procedural)
    Checking parity-scale-codec v1.1.2
    Checking impl-codec v0.4.2
    Checking sp-arithmetic v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/arithmetic)
    Checking primitive-types v0.6.2
    Checking sp-runtime-interface v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime-interface)
    Checking sp-core v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/core)
    Checking sp-trie v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/trie)
    Checking sp-inherents v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/inherents)
    Checking frame-metadata v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/metadata)
    Checking sp-state-machine v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine)
    Checking sp-io v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/io)
    Checking sp-application-crypto v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/application-crypto)
    Checking sp-runtime v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/runtime)
    Checking frame-support v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support)
    Checking frame-support-test v2.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/frame/support/test)
    Checking frame-support-test-tests v0.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/target/tests/frame-support-test)
    Finished dev [unoptimized + debuginfo] target(s) in 3m 21s

test tests/construct_runtime_ui/abundant_where_param.rs ... ok
test tests/construct_runtime_ui/default_module_invalid_arg.rs ... ok
test tests/construct_runtime_ui/double_module_parts.rs ... ok
test tests/construct_runtime_ui/double_module_parts_default.rs ... ok
test tests/construct_runtime_ui/generics_in_invalid_module.rs ... ok
test tests/construct_runtime_ui/invalid_module_details.rs ... ok
test tests/construct_runtime_ui/invalid_module_details_keyword.rs ... ok
test tests/construct_runtime_ui/invalid_module_entry.rs ... ok
test tests/construct_runtime_ui/invalid_token_after_module.rs ... ok
test tests/construct_runtime_ui/invalid_token_after_name.rs ... ok
test tests/construct_runtime_ui/invalid_where_param.rs ... ok
test tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.rs ... ok
test tests/construct_runtime_ui/missing_module_instance.rs ... ok
test tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.rs ... ok
test tests/construct_runtime_ui/missing_system_module.rs ... ok
test tests/construct_runtime_ui/missing_where_block.rs ... ok
test tests/construct_runtime_ui/missing_where_param.rs ... ok
test tests/construct_runtime_ui/no_comma_after_where.rs ... ok
test tests/construct_runtime_ui/params_in_invalid_module.rs ... ok

test ui ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/decl_error-b96d29b1a4fb02e4

running 3 tests
test check_module2_error_type ... ok
test check_module1_2_error_type ... ok
test check_module1_1_error_type ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/decl_storage-cc33fa5efbc94dcb

running 9 tests
test test_append_and_len::default_for_option ... ok
test test_append_and_len::append_works ... ok
test test_append_and_len::append_works_for_default ... ok
test test_append_and_len::append_or_put_works ... ok
test tests::check_genesis_config ... ok
test tests::check_builder_config ... ok
test test_append_and_len::len_works ... ok
test tests::store_metadata ... ok
test test_append_and_len::len_works_for_default ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/decl_storage_ui-13eaacf0c83a845f

running 1 test
    Checking frame-support-test-tests v0.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/target/tests/frame-support-test)
    Finished dev [unoptimized + debuginfo] target(s) in 0.27s

test tests/decl_storage_ui/config_duplicate.rs ... ok
test tests/decl_storage_ui/config_get_duplicate.rs ... ok
test tests/decl_storage_ui/get_duplicate.rs ... ok

test decl_storage_ui ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/final_keys-31457624201c9d1f

running 3 tests
test final_keys_instance_2 ... ok
test final_keys_no_instance ... ok
test final_keys_default_instance ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/genesisconfig-29621387d809e3d7

running 1 test
test init_genesis_config ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/instance-075a4c56757c9e05

running 3 tests
test test_instance_storage_metadata ... ok
test storage_instance_independance ... ok
test storage_with_instance_basic_operation ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/issue2219-347cf45c5b6cc37b

running 1 test
test create_genesis_config ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/reserved_keyword-9b91af6d5758dc5f

running 1 test
    Checking frame-support-test-tests v0.0.0 (/Users/Mitsu/coding/shunp/substrate_template/basechain2/target/tests/frame-support-test)
    Finished dev [unoptimized + debuginfo] target(s) in 0.26s

test tests/reserved_keyword/on_initialize.rs ... ok

test reserved_keyword ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/system-824ec2e2c7460722

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_system-4e76a3e4d3753e21

running 13 tests
test tests::origin_works ... ok
test tests::signed_ext_check_era_should_change_longevity ... ok
test tests::deposit_event_should_work ... ok
test tests::deposit_event_topics ... ok
test tests::signed_ext_check_era_should_work ... ok
test tests::signed_ext_check_nonce_works ... ok
test tests::signed_ext_check_weight_block_size_works ... ok
test tests::signed_ext_check_weight_fee_works ... ok
test tests::signed_ext_check_weight_priority_works ... ok
test tests::signed_ext_check_weight_max_works ... ok
test tests::signed_ext_check_weight_works_normal_tx ... ok
test tests::signed_ext_check_weight_works_operational_tx ... ok
test tests::prunes_block_hash_mappings ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/frame_system_rpc_runtime_api-cbcee6893dc5fa65

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/grafana_data_source-3b8f3e344b0fb924

running 1 test
test database::test ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/grafana_data_source_test-0af724f3c3721164

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_cli-1534cb6e112a2479

running 3 tests
test chain_spec::tests::test_connectivity ... ignored
test service::tests::test_consensus ... ignored
test service::tests::test_sync ... ignored

test result: ok. 0 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/substrate-5c31cd8f9e53f11b

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_executor-ebe470ec7cf96f32

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/basic-62e70b80b6b30c1b

running 15 tests
test bad_extrinsic_with_native_equivalent_code_gives_error ... ok
test full_native_block_import_works_with_changes_trie ... ok
test full_native_block_import_works ... ok
test deploying_wasm_contract_should_work ... test deploying_wasm_contract_should_work has been running for over 60 seconds
test deploying_wasm_contract_should_work ... ok
test full_wasm_block_import_works_with_changes_trie ... ok
test full_wasm_block_import_works ... test full_wasm_block_import_works has been running for over 60 seconds
test full_wasm_block_import_works ... ok
test native_big_block_import_succeeds ... ok
test native_big_block_import_fails_on_fallback ... test native_big_block_import_fails_on_fallback has been running for over 60 seconds
test panic_execution_gives_error ... ok
test panic_execution_with_foreign_code_gives_error ... ok
test should_import_block_with_test_client ... ok
test successful_execution_gives_ok ... ok
test successful_execution_with_foreign_code_gives_ok ... ok
test successful_execution_with_native_equivalent_code_gives_ok ... ok
test wasm_big_block_import_fails ... ok
test native_big_block_import_fails_on_fallback ... ok

test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/common-9093337d24cdf727

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/fees-1a369289e3f8c8d4

running 2 tests
test transaction_fee_is_correct_ultimate ... ok
test fee_multiplier_increases_and_decreases_on_big_weight ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/submit_transaction-f0fc7963082f8beb

running 4 tests
test should_submit_unsigned_transaction ... ok
test should_submit_signed_twice_from_the_same_account ... ok
test should_submit_signed_transaction ... ok
test submitted_transaction_should_be_valid ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_primitives-26383332e22b07e4

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_rpc-e286b713f02533db

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_rpc_client-ec3e118f7cf66026

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_runtime-9ed8ccadc50cc248

running 11 tests
test impls::tests::congested_chain_simulation ... ignored
test __pallet_staking_reward_curve_test_module::reward_curve_piece_count ... ok
test impls::tests::stateful_weight_mil_collapse_to_minus_one ... ok
test impls::tests::stateful_weight_mul_grow_to_infinity ... ok
test impls::tests::fee_multiplier_update_poc_works ... ok
test impls::tests::stateless_weight_mul ... ok
test impls::tests::weight_to_fee_should_not_overflow_on_large_weights ... ok
test tests::validate_transaction_submitter_bounds ... ok
test tests::block_hooks_weight_should_not_exceed_limits ... ok
test __pallet_staking_reward_curve_test_module::reward_curve_precision ... ok
test impls::tests::empty_chain_simulation ... ok

test result: ok. 10 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_template-db166dfeea41ff61

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_template_runtime-9995e24f4157979f

running 1 test
test template::tests::it_works_for_default_value ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_testing-e81f4609639ad6ba

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/node_transaction_factory-4033d3caa9f18f71

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_assets-a840e17b29d4e9b8

running 8 tests
test tests::issuing_asset_units_to_issuer_should_work ... ok
test tests::destroying_asset_balance_with_positive_balance_should_work ... ok
test tests::querying_total_supply_should_work ... ok
test tests::destroying_asset_balance_with_zero_balance_should_not_work ... ok
test tests::transferring_amount_above_available_balance_should_work ... ok
test tests::transferring_more_units_than_total_supply_should_not_work ... ok
test tests::transferring_amount_more_than_available_balance_should_not_work ... ok
test tests::transferring_less_than_one_unit_should_not_work ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_aura-3a7c1fb6757e21d8

running 1 test
test tests::initial_values ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_authority_discovery-18f64476fd1c2d90

running 1 test
test tests::authorities_returns_current_authority_set ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_authorship-389bcd6f7e356ebe

running 4 tests
test tests::one_uncle_per_author_per_number ... ok
test tests::sets_author_lazily ... ok
test tests::prune_old_uncles_works ... ok
test tests::rejects_bad_uncles ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_babe-1e39c6f20579c15a

running 5 tests
test tests::empty_randomness_is_correct ... ok
test tests::authority_index ... ok
test tests::initial_values ... ok
test tests::check_module ... ok
test tests::first_block_epoch_zero_start ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_balances-4dacd028d62063a3

running 45 tests
test tests::account_create_on_free_too_low ... ok
test tests::account_create_on_free_too_low_with_other ... ok
test tests::account_removal_on_free_too_low ... ok
test tests::balance_works ... ok
test tests::balance_transfer_works ... ok
test tests::balance_transfer_when_reserved_should_not_work ... ok
test tests::burn_must_work ... ok
test tests::cannot_set_genesis_value_below_ed ... ok
test tests::basic_locking_should_work ... ok
test tests::combination_locking_should_work ... ok
test tests::check_vesting_status ... ok
test tests::deducting_balance_should_work ... ok
test tests::double_locking_should_work ... ok
test tests::default_indexing_on_new_accounts_should_not_work2 ... ok
test tests::dust_account_removal_should_work ... ok
test tests::dust_account_removal_should_work2 ... ok
test tests::liquid_funds_should_transfer_with_delayed_vesting ... ok
test tests::force_transfer_works ... ok
test tests::extra_balance_should_transfer ... ok
test tests::dust_moves_between_free_and_reserved ... ok
test tests::lock_block_number_should_work ... ok
test tests::lock_removal_should_work ... ok
test tests::lock_block_number_extension_should_work ... ok
test tests::lock_replacement_should_work ... ok
test tests::lock_reasons_extension_should_work ... ok
test tests::lock_reasons_should_work ... ok
test tests::refunding_balance_should_work ... ok
test tests::partial_locking_should_work ... ok
test tests::reward_should_work ... ok
test tests::reserving_balance_should_work ... ok
test tests::slashing_incomplete_balance_should_work ... ok
test tests::lock_value_extension_should_work ... ok
test tests::slashing_balance_should_work ... ok
test tests::reserved_balance_should_prevent_reclaim_count ... ok
test tests::slashing_incomplete_reserved_balance_should_work ... ok
test tests::slashing_reserved_balance_should_work ... ok
test tests::transfer_keep_alive_works ... ok
test tests::transfer_overflow_isnt_exploitable ... ok
test tests::transferring_too_high_value_should_not_panic ... ok
test tests::transferring_incomplete_reserved_balance_should_work ... ok
test tests::transferring_reserved_balance_should_work ... ok
test tests::transferring_reserved_balance_to_nonexistent_should_fail ... ok
test tests::unreserving_balance_should_work ... ok
test tests::vested_balance_should_transfer ... ok
test tests::unvested_balance_should_not_transfer ... ok

test result: ok. 45 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_collective-4adb9af4295dfb13

running 11 tests
test tests::motions_basic_environment_works ... ok
test tests::motions_disapproval_works ... ok
test tests::motions_approval_works ... ok
test tests::motions_ignoring_bad_index_collective_vote_works ... ok
test tests::motions_ignoring_non_collective_proposals_works ... ok
test tests::motions_ignoring_non_collective_votes_works ... ok
test tests::propose_works ... ok
test tests::motions_reproposing_disapproved_works ... ok
test tests::motions_revoting_works ... ok
test tests::removal_of_old_voters_votes_works ... ok
test tests::removal_of_old_voters_votes_works_with_set_members ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_contracts-5dda25ebfba36fe5

running 115 tests
test exec::tests::balance_too_low ... ok
test exec::tests::caller_returns_proper_values ... ok
test exec::tests::address_returns_proper_values ... ok
test exec::tests::base_fees ... ok
test exec::tests::input_data_to_call ... ok
test exec::tests::changes_are_reverted_on_failing_call ... ok
test exec::tests::input_data_to_instantiate ... ok
test exec::tests::instantiation_fails_with_failing_output ... ok
test exec::tests::instantiation_traps ... ok
test exec::tests::instantiation_work_with_success_output ... ok
test exec::tests::it_works ... ok
test exec::tests::instantiation_from_contract ... ok
test exec::tests::output_is_returned_on_failure ... ok
test exec::tests::output_is_returned_on_success ... ok
test exec::tests::refuse_instantiate_with_value_below_existential_deposit ... ok
test exec::tests::rent_allowance ... ok
test exec::tests::transfer_works ... ok
test exec::tests::transfer_fees ... ok
test exec::tests::max_depth ... ok
test gas::tests::charge_exact_amount ... ok
test gas::tests::it_works ... ok
test gas::tests::overcharge_is_unrecoverable ... ok
test gas::tests::refuse_to_execute_anything_if_zero ... ok
test gas::tests::simple ... ok
test gas::tests::tracing ... ok
test tests::account_removal_removes_storage ... ok
test tests::cannot_self_destruct_in_constructor ... ok
test tests::check_block_gas_limit_works ... ok
test tests::call_removed_contract ... ok
test tests::cannot_self_destruct_while_live ... ok
test tests::default_rent_allowance_on_instantiate ... ok
test tests::deduct_blocks ... ok
test tests::call_contract_removals ... ok
test tests::dispatch_call ... ok
test tests::claim_surcharge_malus ... ok
test tests::dispatch_call_not_dispatched_after_top_level_transaction_failure ... ok
test tests::deploy_and_call_other_contract ... ok
test tests::destroy_contract_and_transfer_funds ... ok
test tests::refunds_unused_gas ... ok
test tests::get_runtime_storage ... ok
test tests::instantiate_and_call_and_deposit_event ... ok
test tests::inherent_claim_surcharge_contract_removals ... ok
test tests::restorations_dirty_storage ... ok
test tests::restoration_success ... ok
test tests::restoration_different_storage ... ok
test tests::self_destruct_by_draining_balance ... ok
test tests::storage_max_value_limit ... ok
test tests::test_set_rent_code_and_hash ... ok
test wasm::env_def::macros::tests::macro_define_env ... ok
test wasm::env_def::macros::tests::macro_define_func ... ok
test wasm::env_def::macros::tests::macro_gen_signature ... ok
test wasm::env_def::macros::tests::macro_unmarshall_then_body ... ok
test wasm::env_def::macros::tests::macro_unmarshall_then_body_then_marshall_unit ... ok
test wasm::env_def::macros::tests::macro_unmarshall_then_body_then_marshall_value_or_trap ... ok
test wasm::prepare::tests::entrypoints::global_float ... ok
test wasm::prepare::tests::entrypoints::it_works ... ok
test wasm::prepare::tests::entrypoints::local_float ... ok
test wasm::prepare::tests::entrypoints::omit_call ... ok
test wasm::prepare::tests::entrypoints::omit_deploy ... ok
test wasm::prepare::tests::entrypoints::param_float ... ok
test tests::restorations_dirty_storage_and_different_storage ... ok
test tests::signed_claim_surcharge_contract_removals ... ok
test wasm::prepare::tests::entrypoints::result_float ... ok
test wasm::prepare::tests::entrypoints::try_sneak_export_as_entrypoint ... ok
test wasm::prepare::tests::entrypoints::try_sneak_export_as_global ... ok
test wasm::prepare::tests::entrypoints::unknown_exports ... ok
test wasm::prepare::tests::entrypoints::wrong_signature ... ok
test tests::storage_size ... ok
test wasm::prepare::tests::imports::can_import_legit_function ... ok
test wasm::prepare::tests::imports::can_not_import_gas_function ... ok
test wasm::prepare::tests::imports::ext_println_debug_disabled ... ok
test wasm::prepare::tests::imports::non_env_import ... ok
test wasm::prepare::tests::imports::unknown_func_name ... ok
test wasm::prepare::tests::imports::ext_println_debug_enabled ... ok
test wasm::prepare::tests::memories::assume_memory_size ... ok
test wasm::prepare::tests::imports::wrong_signature ... ok
test wasm::prepare::tests::memories::field_name_not_memory ... ok
test wasm::prepare::tests::memories::global_import ... ok
test wasm::prepare::tests::memories::initial_exceeds_maximum ... ok
test wasm::prepare::tests::memories::internal_memory_declaration ... ok
test wasm::prepare::tests::memories::multiple_memory_imports ... ok
test wasm::prepare::tests::memories::memory_with_one_page ... ok
test wasm::prepare::tests::memories::no_maximum ... ok
test wasm::prepare::tests::memories::requested_maximum_exceeds_configured_maximum ... ok
test wasm::prepare::tests::memories::table_import ... ok
test wasm::prepare::tests::memories::no_memory_import ... ok
test wasm::prepare::tests::tables::assume_table_size ... ok
test wasm::prepare::tests::no_floats ... ok
test wasm::prepare::tests::tables::table_too_big ... ok
test wasm::prepare::tests::tables::no_tables ... ok
test wasm::prepare::tests::tables::table_valid_size ... ok
test wasm::tests::balance ... ok
test wasm::tests::address ... ok
test wasm::tests::block_number ... ok
test wasm::tests::caller ... ok
test wasm::tests::contract_transfer ... ok
test wasm::tests::contract_call_limited_gas ... ok
test wasm::tests::contract_instantiate ... ok
test wasm::tests::deposit_event ... ok
test wasm::tests::dispatch_call ... ok
test wasm::tests::deposit_event_max_topics ... ok
test wasm::tests::deposit_event_duplicates ... ok
test wasm::tests::gas_left ... ok
test wasm::tests::gas_price ... ok
test wasm::tests::get_runtime_storage ... ok
test wasm::tests::get_storage_puts_data_into_scratch_buf ... ok
test wasm::tests::minimum_balance ... ok
test wasm::tests::output_buffer_capacity_preserved_on_failure ... ok
test wasm::tests::now ... ok
test wasm::tests::output_buffer_capacity_preserved_on_success ... ok
test wasm::tests::random ... ok
test wasm::tests::return_from_start_fn ... ok
test wasm::tests::return_with_failure_status ... ok
test wasm::tests::return_with_success_status ... ok
test wasm::tests::value_transferred ... ok

test result: ok. 115 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_contracts_rpc-26b21ba3f7260493

running 1 test
test tests::should_serialize_deserialize_properly ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_contracts_rpc_runtime_api-97781a56f51f9d0a

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_democracy-dc56f62f098cb448

running 42 tests
test tests::cancel_referendum_should_work ... ok
test tests::controversial_low_turnout_voting_should_work ... ok
test tests::controversial_voting_should_work ... ok
test tests::cancel_queued_should_work ... ok
test tests::deposit_for_proposals_should_be_returned ... ok
test tests::deposit_for_proposals_should_be_taken ... ok
test tests::delayed_enactment_should_work ... ok
test tests::external_default_referendum_works ... ok
test tests::emergency_cancel_should_work ... ok
test tests::external_majority_referendum_works ... ok
test tests::fast_track_referendum_fails_when_no_simple_majority ... ok
test tests::external_referendum_works ... ok
test tests::fast_track_referendum_works ... ok
test tests::locked_for_should_work ... ok
test tests::external_and_public_interleaving_works ... ok
test tests::lock_voting_should_work ... ok
test tests::missing_preimage_should_fail ... ok
test tests::lock_voting_should_work_with_delegation ... ok
test tests::params_should_work ... ok
test tests::poor_proposer_should_not_work ... ok
test tests::noting_imminent_preimage_for_free_should_work ... ok
test tests::ooo_inject_referendums_should_work ... ok
test tests::passing_low_turnout_voting_should_work ... ok
test tests::poor_seconder_should_not_work ... ok
test tests::preimage_deposit_should_be_reapable_earlier_by_owner ... ok
test tests::preimage_deposit_should_be_reapable ... ok
test tests::proposal_with_deposit_below_minimum_should_not_work ... ok
test tests::preimage_deposit_should_be_required_and_returned ... ok
test tests::simple_failing_should_work ... ok
test tests::proxy_should_work ... ok
test tests::reaping_imminent_preimage_should_fail ... ok
test tests::simple_passing_should_work ... ok
test tests::runners_up_should_come_after ... ok
test tests::single_proposal_should_work ... ok
test tests::single_proposal_should_work_with_cyclic_delegation ... ok
test tests::single_proposal_should_work_with_delegation ... ok
test tests::single_proposal_should_work_with_proxy ... ok
test tests::single_proposal_should_work_with_delegation_and_vote ... ok
test vote_threshold::tests::should_work ... ok
test tests::single_proposal_should_work_with_undelegation ... ok
test tests::single_proposal_should_work_with_vote_and_delegation ... ok
test tests::veto_external_works ... ok

test result: ok. 42 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_elections-dce6a2f834bd867c

running 56 tests
test tests::candidacy_bad_candidate_slot_submission_should_not_work ... ok
test tests::candidacy_poor_candidate_submission_should_not_work ... ok
test tests::candidacy_non_free_candidate_slot_submission_should_not_work ... ok
test tests::candidacy_dupe_candidate_submission_should_not_work ... ok
test tests::candidacy_submission_using_alternative_free_slot_should_work ... ok
test tests::candidacy_simple_candidate_submission_should_work ... ok
test tests::candidacy_submission_not_using_free_slot_should_not_work ... ok
test tests::candidacy_submission_using_free_slot_should_work ... ok
test tests::chunking_bool_to_flag_should_work ... ok
test tests::chunking_approval_storage_should_work ... ok
test tests::chunking_cell_status_works ... ok
test tests::chunking_voter_set_growth_should_work ... ok
test tests::election_double_presentations_should_be_punished ... ok
test tests::election_invalid_present_tally_should_slash ... ok
test tests::election_loser_candidates_bond_gets_slashed ... ok
test tests::election_present_outside_of_presentation_period_should_not_work ... ok
test tests::chunking_voter_index_does_not_take_holes_into_account ... ok
test tests::election_present_when_presenter_is_poor_should_not_work ... ok
test tests::election_present_with_invalid_vote_index_should_not_work ... ok
test tests::election_presentations_with_zero_staked_deposit_should_not_work ... ok
test tests::election_presenting_for_double_election_should_not_work ... ok
test tests::election_presenting_loser_first_should_not_matter ... ok
test tests::election_proxy_voting_should_work ... ok
test tests::election_presenting_loser_should_not_work ... ok
test tests::election_seats_should_be_released ... ok
test tests::election_runners_up_should_be_kept ... ok
test tests::election_simple_tally_should_work ... ok
test tests::election_second_tally_should_use_runners_up ... ok
test tests::params_should_work ... ok
test tests::election_voting_should_work ... ok
test tests::pot_get_offset_should_work ... ok
test tests::pot_get_offset_with_zero_decay ... ok
test tests::pot_resubmitting_approvals_stores_pot ... ok
test tests::pot_accumulating_weight_and_decaying_should_work ... ok
test tests::pot_winning_resets_accumulated_pot ... ok
test tests::retracting_active_voter_should_slash_reporter ... ok
test tests::retracting_inactive_voter_by_nonvoter_should_not_work ... ok
test tests::retracting_inactive_voter_should_work ... ok
test tests::retracting_inactive_voter_with_bad_reporter_index_should_not_work ... ok
test tests::retracting_inactive_voter_with_bad_target_index_should_not_work ... ok
test tests::chunking_voter_set_reclaim_should_work ... ok
test tests::voting_cannot_lock_less_than_limit ... ok
test tests::retracting_inactive_voter_with_other_candidates_in_slots_should_work ... ok
test tests::voting_initial_set_approvals_ignores_voter_index ... ok
test tests::voting_invalid_retraction_index_should_not_work ... ok
test tests::voting_locking_more_than_total_balance_is_moot ... ok
test tests::voting_locking_stake_and_reserving_bond_works ... ok
test tests::voting_non_voter_retraction_should_not_work ... ok
test tests::voting_overflow_retraction_index_should_not_work ... ok
test tests::voting_resubmitting_approvals_should_work ... ok
test tests::voting_setting_an_approval_vote_count_more_than_candidate_count_should_not_work ... ok
test tests::voting_retracting_voter_should_work ... ok
test tests::voting_subsequent_set_approvals_checks_voter_index ... ok
test tests::voting_without_any_candidate_count_should_not_work ... ok
test tests::voting_bad_approval_index_slashes_voters_and_bond_reduces_stake ... ok
test tests::chunking_approvals_set_growth_should_work ... ok

test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_elections_phragmen-4be2e5bda1bdc088

running 49 tests
test tests::can_renounce_candidacy_candidate ... ok
test tests::behavior_with_dupe_candidate ... ok
test tests::can_renounce_candidacy_member_with_runners_bond_is_refunded ... ok
test tests::can_detect_defunct_voter ... ok
test tests::can_update_votes_and_stake ... ok
test tests::can_renounce_candidacy_member_without_runners_bond_is_refunded ... ok
test tests::can_vote_for_more_than_total_balance_but_moot ... ok
test tests::can_vote_with_custom_stake ... ok
test tests::can_renounce_candidacy_runner ... ok
test tests::can_vote_for_old_members_even_when_no_new_candidates ... ok
test tests::candidates_are_sorted ... ok
test tests::cannot_vote_for_less_than_ed ... ok
test tests::cannot_vote_for_no_candidate ... ok
test tests::cannot_vote_for_more_than_candidates ... ok
test tests::dupe_candidate_submission_should_not_work ... ok
test tests::defunct_voter_will_be_counted ... ok
test tests::dupe_remove_should_fail ... ok
test tests::current_members_are_always_next_candidate ... ok
test tests::invalid_votes_are_moot ... ok
test tests::losers_will_lose_the_bond ... ok
test tests::member_candidacy_submission_should_not_work ... ok
test tests::incoming_outgoing_are_reported ... ok
test tests::non_voter_remove_should_not_work ... ok
test tests::members_are_sorted_based_on_id_runners_on_merit ... ok
test tests::election_state_is_uninterrupted ... ok
test tests::members_lose_bond_once_outgoing ... ok
test tests::params_should_work ... ok
test tests::poor_candidate_submission_should_not_work ... ok
test tests::phragmen_should_not_self_vote ... ok
test tests::only_desired_seats_are_chosen ... ok
test tests::remove_voter_should_work ... ok
test tests::remove_members_triggers_election ... ok
test tests::removed_voter_should_not_be_counted ... ok
test tests::report_voter_should_slash_when_bad_report ... ok
test tests::reporter_must_be_voter ... ok
test tests::runner_up_replacement_maintains_members_order ... ok
test tests::report_voter_should_work_and_earn_reward ... ok
test tests::runner_candidate_submission_should_not_work ... ok
test tests::runner_up_replacement_works_when_out_of_order ... ok
test tests::runners_up_should_be_kept ... ok
test tests::runners_up_lose_bond_once_outgoing ... ok
test tests::simple_candidate_submission_should_work ... ok
test tests::runners_up_should_be_next_candidates ... ok
test tests::simple_candidate_submission_with_no_votes_should_work ... ok
test tests::term_duration_zero_is_passive ... ok
test tests::seats_should_be_released_when_no_vote ... ok
test tests::simple_voting_should_work ... ok
test tests::wrong_renounce_candidacy_should_fail ... ok
test tests::simple_voting_rounds_should_work ... ok

test result: ok. 49 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_evm-c006229d24b48551

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_example-208698f2d57daeea

running 4 tests
test tests::weights_work ... ok
test tests::signed_ext_watch_dummy_works ... ok
test tests::it_works_for_default_value ... ok
test tests::it_works_for_optional_value ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_finality_tracker-1a582cbcebe38a0e

running 3 tests
test tests::median_works ... ok
test tests::notifies_when_stalled ... ok
test tests::recent_notifications_prevent_stalling ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_generic_asset-3add55eddfa09e78

running 45 tests
test tests::burn_should_raise_event ... ok
test tests::check_permission_should_return_correct_permission ... ok
test tests::burn_should_burn_an_asset ... ok
test tests::burn_should_throw_permission_error ... ok
test tests::create_asset_should_create_a_reserved_asset_when_from_account_is_none ... ok
test tests::check_permission_should_return_false_for_no_permission ... ok
test tests::create_asset_should_create_a_user_asset ... ok
test tests::create_asset_works_with_given_asset_id_and_from_account ... ok
test tests::create_reserved_should_create_a_default_account_with_the_balance_given ... ok
test tests::create_asset_with_non_reserved_asset_id_should_not_work ... ok
test tests::create_asset_with_a_taken_asset_id_should_not_work ... ok
test tests::free_balance_should_only_return_account_free_balance ... ok
test tests::issuing_asset_units_to_issuer_should_work ... ok
test tests::mint_should_increase_asset ... ok
test tests::issuing_with_next_asset_id_overflow_should_not_work ... ok
test tests::mint_should_raise_event ... ok
test tests::mint_should_throw_permission_error ... ok
test tests::repatriate_reserved_return_amount_substracted_by_slash_amount ... ok
test tests::repatriate_reserved_return_none ... ok
test tests::reserve_should_moves_amount_from_balance_to_reserved_balance ... ok
test tests::querying_total_supply_should_work ... ok
test tests::reserved_balance_should_only_return_account_reserved_balance ... ok
test tests::set_free_balance_should_add_amount_as_free_balance ... ok
test tests::set_reserved_balance_should_add_balance_as_reserved ... ok
test tests::reserve_should_not_moves_amount_from_balance_to_reserved_balance ... ok
test tests::self_transfer_should_fail ... ok
test tests::slash_reserved_should_deducts_up_to_amount_from_reserved_balance ... ok
test tests::slash_reserved_should_return_none ... ok
test tests::spending_asset_id_should_return_10 ... ok
test tests::staking_asset_id_should_return_0 ... ok
test tests::slash_should_return_slash_reserved_amount ... ok
test tests::total_balance_should_be_zero ... ok
test tests::total_balance_should_be_equal_to_sum_of_account_balance_and_free_balance ... ok
test tests::total_balance_should_be_equal_to_account_balance ... ok
test tests::transferring_amount_should_work ... ok
test tests::unreserve_should_deduct_reserved_balance_by_reserved_amount ... ok
test tests::transferring_amount_should_fail_when_transferring_more_than_free_balance ... ok
test tests::unreserve_should_increase_free_balance_by_reserved_balance ... ok
test tests::unreserve_should_return_none ... ok
test tests::transferring_less_than_one_unit_should_not_work ... ok
test tests::transferring_more_units_than_total_supply_should_not_work ... ok
test tests::unreserve_should_return_substratced_value_from_unreserved_amount_by_actual_acount_balance ... ok
test tests::update_permission_should_raise_event ... ok
test tests::update_permission_should_change_permission ... ok
test tests::update_permission_should_throw_error_when_lack_of_permissions ... ok

test result: ok. 45 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_grandpa-9d7f9d143ac149bc

running 8 tests
test tests::authorities_change_logged ... ok
test tests::new_decodes_from_old ... ok
test tests::authorities_change_logged_after_delay ... ok
test tests::cannot_schedule_change_when_one_pending ... ok
test tests::time_slot_have_sane_ord ... ok
test tests::schedule_pause_only_when_live ... ok
test tests::schedule_resume_only_when_paused ... ok
test tests::dispatch_forced_change ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_identity-33c92bd7e74caa57

running 13 tests
test tests::adding_registrar_should_work ... ok
test tests::clearing_account_should_remove_subaccounts_and_refund ... ok
test tests::clearing_judgement_should_work ... ok
test tests::field_deposit_should_work ... ok
test tests::killing_account_should_remove_subaccounts_and_not_refund ... ok
test tests::registration_should_work ... ok
test tests::killing_slashing_should_work ... ok
test tests::cancelling_requested_judgement_should_work ... ok
test tests::trailing_zeros_decodes_into_default_data ... ok
test tests::setting_account_id_should_work ... ok
test tests::requesting_judgement_should_work ... ok
test tests::setting_subaccounts_should_work ... ok
test tests::uninvited_judgement_should_work ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_im_online-86e741a9c9f0c60f

running 8 tests
test tests::should_mark_online_validator_when_block_is_authored ... ok
test tests::should_generate_heartbeats ... ok
test tests::should_cleanup_received_heartbeats_on_session_end ... ok
test tests::late_heartbeat_should_fail ... ok
test tests::test_unresponsiveness_slash_fraction ... ok
test tests::should_mark_online_validator_when_heartbeat_is_received ... ok
test tests::should_not_send_a_report_if_already_online ... ok
test tests::should_report_offline_validators ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_indices-f6325d6899dd7821

running 5 tests
test address::tests::it_should_work ... ok
test tests::reclaim_indexing_on_new_accounts_should_work ... ok
test tests::indexing_lookup_should_work ... ok
test tests::alive_account_should_prevent_reclaim ... ok
test tests::default_indexing_on_new_accounts_should_work ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_membership-82d5e9f7be82b50a

running 8 tests
test tests::query_membership_works ... ok
test tests::change_key_works_that_does_not_change_order ... ok
test tests::change_key_works ... ok
test tests::add_member_works ... ok
test tests::reset_members_works ... ok
test tests::remove_member_works ... ok
test tests::swap_member_works_that_does_not_change_order ... ok
test tests::swap_member_works ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_nicks-a912560dce6e9569

running 4 tests
test tests::kill_name_should_work ... ok
test tests::normal_operation_should_work ... ok
test tests::force_name_should_work ... ok
test tests::error_catching_should_work ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_offences-ca17625175ae7cee

running 6 tests
test tests::should_deposit_event ... ok
test tests::doesnt_deposit_event_for_dups ... ok
test tests::should_not_report_the_same_authority_twice_in_the_same_slot ... ok
test tests::should_properly_count_offences ... ok
test tests::should_report_an_authority_and_trigger_on_offence ... ok
test tests::should_report_in_different_time_slot ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_randomness_collective_flip-ccd3f15468a9453d

running 5 tests
test tests::test_block_number_to_index ... ok
test tests::test_random_material_parital ... ok
test tests::test_random_material_filled ... ok
test tests::test_random_material_filled_twice ... ok
test tests::test_random ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_recovery-235a6a1ee2c94ad4

running 14 tests
test tests::basic_setup_works ... ok
test tests::close_recovery_handles_basic_errors ... ok
test tests::create_recovery_works ... ok
test tests::create_recovery_handles_basic_errors ... ok
test tests::claim_recovery_works ... ok
test tests::initiate_recovery_works ... ok
test tests::initiate_recovery_handles_basic_errors ... ok
test tests::claim_recovery_handles_basic_errors ... ok
test tests::set_recovered_works ... ok
test tests::recovery_lifecycle_works ... ok
test tests::remove_recovery_works ... ok
test tests::malicious_recovery_fails ... ok
test tests::vouch_recovery_works ... ok
test tests::vouch_recovery_handles_basic_errors ... ok

test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_scored_pool-3a2f67fd5813673e

running 16 tests
test tests::kicking_works ... ok
test tests::candidacy_resubmitting_works ... ok
test tests::kicking_works_only_for_authorized ... ok
test tests::index_mismatches_should_abort ... ok
test tests::query_membership_works ... ok
test tests::refreshing_happens_every_period ... ok
test tests::refreshing_works ... ok
test tests::oob_index_should_abort ... ok
test tests::scoring_same_element_with_same_score_works ... ok
test tests::scoring_works ... ok
test tests::submit_candidacy_works ... ok
test tests::submit_candidacy_must_not_work ... ok
test tests::unscored_entities_must_not_be_used_for_filling_members ... ok
test tests::withdraw_scored_candidacy_must_work ... ok
test tests::withdraw_candidacy_must_only_work_for_members ... ok
test tests::withdraw_unscored_candidacy_must_work ... ok

test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_session-3c1fccde9ab7fb8b

running 13 tests
test tests::duplicates_are_not_allowed ... ok
test tests::keys_cleared_on_kill ... ok
test tests::periodic_session_works ... ok
test tests::put_get_keys ... ok
test historical::tests::generated_proof_is_good ... ok
test tests::authorities_should_track_validators ... ok
test tests::return_true_if_more_than_third_is_disabled ... ok
test tests::session_keys_generate_output_works_as_set_keys_input ... ok
test tests::session_change_should_work ... ok
test tests::simple_setup_should_work ... ok
test tests::should_work_with_early_exit ... ok
test tests::session_changed_flag_works ... ok
test historical::tests::prune_up_to_works ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_society-b183164e8b9d20b6

running 25 tests
test tests::basic_new_member_reject_works ... ok
test tests::basic_new_member_skeptic_works ... ok
test tests::basic_new_member_works ... ok
test tests::bad_vote_slash_works ... ok
test tests::founding_works ... ok
test tests::challenges_work ... ok
test tests::bidding_works ... ok
test tests::payout_works ... ok
test tests::head_cannot_be_removed ... ok
test tests::slash_payout_multi_works ... ok
test tests::bids_ordered_correctly ... ok
test tests::slash_payout_works ... ok
test tests::suspended_candidate_rejected_works ... ok
test tests::unbid_vouch_works ... ok
test tests::suspended_member_lifecycle_works ... ok
test tests::unbidding_works ... ok
test tests::user_cannot_bid_twice ... ok
test tests::unvouch_works ... ok
test tests::votes_are_working ... ok
test tests::vouching_handles_removed_member_with_bid ... ok
test tests::voucher_cannot_win_more_than_bid ... ok
test tests::vouch_works ... ok
test tests::vouching_handles_removed_member_with_candidate ... ok
test tests::zero_bid_works ... ok
test tests::max_limits_work ... ok

test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_staking-24d24897f74ebc71

running 69 tests
test inflation::test::__pallet_staking_reward_curve_test_module::reward_curve_piece_count ... ok
test mock::__pallet_staking_reward_curve_test_module::reward_curve_piece_count ... ok
test inflation::test::npos_curve_is_sensible ... ok
test slashing::tests::many_prior_spans ... ok
test slashing::tests::ending_span ... ok
test slashing::tests::single_slashing_span ... ok
test slashing::tests::pruning_spans ... ok
test slashing::tests::span_contains_era ... ok
test tests::add_reward_points_fns_works ... ok
test tests::basic_setup_works ... ok
test tests::bond_extra_works ... ok
test tests::bond_with_little_staked_value_bounded_by_slot_stake ... ok
test tests::bond_extra_and_withdraw_unbonded_works ... ok
test tests::cannot_reserve_staked_balance ... ok
test tests::cannot_transfer_staked_balance ... ok
test tests::bond_with_no_staked_value ... ok
test tests::cannot_transfer_staked_balance_2 ... ok
test tests::change_controller_works ... ok
test tests::dont_slash_if_fraction_is_zero ... ok
test tests::deferred_slashes_are_deferred ... ok
test tests::double_controlling_should_fail ... ok
test tests::double_staking_should_fail ... ok
test tests::force_unstake_works ... ok
test tests::era_is_always_same_length ... ok
test tests::garbage_collection_after_slashing ... ok
test tests::forcing_new_era_works ... ok
test tests::invulnerables_are_not_slashed ... ok
test tests::garbage_collection_on_window_pruning ... ok
test tests::less_than_needed_candidates_works ... ok
test tests::new_era_elects_correct_number_of_validators ... ok
test tests::multi_era_reward_should_work ... ok
test tests::no_candidate_emergency_condition ... ok
test tests::nominators_also_get_slashed ... ok
test tests::nominating_and_rewards_should_work ... ok
test tests::offence_deselects_validator_when_slash_is_zero ... ok
test tests::offence_ensures_new_era_without_clobbering ... ok
test tests::offence_forces_new_era ... ok
test tests::on_free_balance_zero_stash_removes_nominator ... ok
test tests::on_free_balance_zero_stash_removes_validator ... ok
test tests::only_slash_for_max_in_era ... ok
test tests::phragmen_should_not_overflow_nominators ... ok
test tests::phragmen_should_not_overflow_ultimate ... ok
test tests::phragmen_should_not_overflow_validators ... ok
test tests::rebond_is_fifo ... ok
test tests::rebond_works ... ok
test tests::remove_multi_deferred ... ok
test tests::reporters_receive_their_slice ... ok
test tests::remove_deferred ... ok
test tests::reward_from_authorship_event_handler_works ... ok
test tests::reward_validator_slashing_validator_doesnt_overflow ... ok
test tests::reward_destination_works ... ok
test tests::rewards_should_work ... ok
test tests::session_and_eras_work ... ok
test tests::slash_in_old_span_does_not_deselect ... ok
test tests::slash_kicks_validators_not_nominators ... ok
test tests::slashing_nominators_by_span_max ... ok
test tests::slashes_are_summed_across_spans ... ok
test tests::slashing_performed_according_exposure ... ok
test tests::slot_stake_is_least_staked_validator_and_exposure_defines_maximum_punishment ... ok
test tests::subsequent_reports_in_same_span_pay_out_less ... ok
test tests::staking_should_work ... ok
test tests::switching_roles ... ok
test tests::unbonded_balance_is_not_slashable ... ok
test tests::validator_payment_prefs_work ... ok
test tests::version_initialized ... ok
test tests::too_many_unbond_calls_should_not_work ... ok
test tests::wrong_vote_is_null ... ok
test mock::__pallet_staking_reward_curve_test_module::reward_curve_precision ... ok
test inflation::test::__pallet_staking_reward_curve_test_module::reward_curve_precision ... ok

test result: ok. 69 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_staking_reward_curve-5b5a542c192f810d

running 1 test
test log::test_log ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/test-98178190fa6f6309

running 4 tests
test test_big_falloff::__pallet_staking_reward_curve_test_module::reward_curve_piece_count ... ok
test test_small_falloff::__pallet_staking_reward_curve_test_module::reward_curve_piece_count ... ok
test test_big_falloff::__pallet_staking_reward_curve_test_module::reward_curve_precision ... ok
test test_small_falloff::__pallet_staking_reward_curve_test_module::reward_curve_precision ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_sudo-f5119781883e05b5

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_timestamp-7af5cd65d46e5639

running 3 tests
test tests::timestamp_works ... ok
test tests::block_period_minimum_enforced ... ok
test tests::double_timestamp_should_fail ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_transaction_payment-7cf4f1d169475f36

running 8 tests
test tests::compute_fee_does_not_overflow ... ok
test tests::compute_fee_works_with_multiplier ... ok
test tests::compute_fee_works_without_multiplier ... ok
test tests::query_info_works ... ok
test tests::signed_extension_transaction_payment_is_bounded ... ok
test tests::signed_ext_length_fee_is_also_updated_per_congestion ... ok
test tests::signed_extension_allows_free_transactions ... ok
test tests::signed_extension_transaction_payment_work ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_transaction_payment_rpc-ed5bb82cbf4f783d

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_transaction_payment_rpc_runtime_api-88bd0523a9a986d8

running 1 test
test tests::should_serialize_properly_with_u64 ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_treasury-4af39e3922e18a9f

running 23 tests
test tests::accepted_spend_proposal_ignored_outside_spend_period ... ok
test tests::accept_non_existant_spend_proposal_fails ... ok
test tests::accepted_spend_proposal_enacted_on_spend_period ... ok
test tests::accept_already_rejected_spend_proposal_fails ... ok
test tests::genesis_config_works ... ok
test tests::minting_works ... ok
test tests::inexisting_account_works ... ok
test tests::pot_underflow_should_not_diminish ... ok
test tests::reject_already_rejected_spend_proposal_fails ... ok
test tests::reject_non_existant_spend_proposal_fails ... ok
test tests::rejected_spend_proposal_ignored_on_spend_period ... ok
test tests::close_tip_works ... ok
test tests::spend_proposal_fails_when_proposer_poor ... ok
test tests::report_awesome_from_beneficiary_and_tip_works ... ok
test tests::spend_proposal_takes_proportional_deposit ... ok
test tests::spend_proposal_takes_min_deposit ... ok
test tests::report_awesome_and_tip_works ... ok
test tests::retract_tip_works ... ok
test tests::tip_median_calculation_works ... ok
test tests::tip_changing_works ... ok
test tests::tip_new_cannot_be_used_twice ... ok
test tests::unused_pot_should_diminish ... ok
test tests::treasury_account_doesnt_get_deleted ... ok

test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/pallet_utility-c9ebf650bea7746c

running 17 tests
test tests::batch_early_exit_works ... ok
test tests::batch_with_root_works ... ok
test tests::batch_with_signed_works ... ok
test tests::as_sub_works ... ok
test tests::cancel_multisig_returns_deposit ... ok
test tests::cancel_multisig_works ... ok
test tests::duplicate_approvals_are_ignored ... ok
test tests::multisig_1_of_3_works ... ok
test tests::multisig_2_of_3_as_multi_works ... ok
test tests::multisig_2_of_3_as_multi_with_many_calls_works ... ok
test tests::multisig_2_of_3_cannot_reissue_same_call ... ok
test tests::multisig_2_of_3_works ... ok
test tests::multisig_deposit_is_taken_and_returned ... ok
test tests::multisig_3_of_3_works ... ok
test tests::too_many_signatories_fails ... ok
test tests::zero_threshold_fails ... ok
test tests::timepoint_checking_works ... ok

test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_authority_discovery-6c25cc79e999ab21

running 9 tests
test addr_cache::tests::retains_only_entries_of_provided_ids ... ok
test addr_cache::tests::returns_same_addresses_of_first_authority_when_second_authority_changes ... ok
test tests::handle_dht_events_with_value_found_should_call_set_priority_group ... ok
test tests::interval_at_with_start_now ... ok
test tests::interval_at_with_initial_delay ... ok
test tests::request_addresses_of_others_triggers_dht_get_query ... ok
test tests::interval_at_is_queuing_ticks ... ok
test tests::publish_ext_addresses_puts_record_on_dht ... ok
test addr_cache::tests::returns_addresses_of_same_authorities_on_repeated_calls ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_basic_authority-c8f8b31b5f32318a

running 2 tests
test basic_authorship::tests::should_cease_building_block_when_deadline_is_reached ... ok
test basic_authorship::tests::proposed_storage_changes_should_match_execute_block_storage_changes ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_block_builder-2bb8fe6d48983fb4

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_chain_spec-f2f35ac1f445388f

running 3 tests
test extension::tests::forks_should_work_correctly ... ok
test chain_spec::tests::should_deserialize_chain_spec_with_extensions ... ok
test chain_spec::tests::should_deserailize_example_chain_spec ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_chain_spec_derive-ac18d5a0c9d6a100

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_cli-531454b1ccab13ad

running 6 tests
test tests::test_node_key_config_default ... ok
test tests::test_node_key_config_input ... ok
test tests::test_node_key_config_file ... ok
test tests::tests_node_name_good ... ok
test tests::tests_node_name_bad ... ok
test tests::keystore_path_is_generated_correctly ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_client-b21901fc3dd58c5f

running 57 tests
test cht::tests::build_pairs_fails_when_no_enough_blocks ... ok
test cht::tests::build_pairs_fails_when_missing_block ... ok
test cht::tests::end_number_works ... ok
test cht::tests::for_each_cht_group_panics ... ok
test cht::tests::for_each_cht_group_works ... ok
test cht::tests::is_build_required_works ... ok
test cht::tests::max_cht_number_works ... ok
test cht::tests::start_number_works ... ok
test cht::tests::compute_root_works ... ok
test cht::tests::build_proof_panics_when_querying_wrong_block ... ok
test cht::tests::build_proof_works ... ok
test client::tests::best_containing_with_genesis_block ... ok
test client::tests::best_containing_with_hash_not_found ... ok
test client::tests::best_containing_on_longest_chain_with_max_depth_higher_than_best ... ok
test client::tests::best_containing_on_longest_chain_with_single_chain_3_blocks ... ok
test client::tests::block_builder_works_with_no_transactions ... ok
test client::tests::block_builder_works_with_transactions ... ok
test client::tests::block_builder_does_not_include_invalid ... ok
test client::tests::best_containing_on_longest_chain_with_multiple_forks ... ok
test client::tests::get_header_by_block_number_doesnt_panic ... ok
test client::tests::client_initializes_from_genesis_ok ... ok
test client::tests::import_with_justification ... ok
test client::tests::importing_diverged_finalized_block_should_trigger_reorg ... ok
test client::tests::finalizing_diverged_block_should_trigger_reorg ... ok
test client::tests::doesnt_import_blocks_that_revert_finality ... ok
test client::tests::key_changes_works ... ok
test client::tests::returns_status_for_pruned_blocks ... ok
test client::tests::state_reverted_on_reorg ... ok
test genesis::tests::construct_genesis_should_work_with_native ... ok
test client::tests::uncles_with_only_ancestors ... ok
test in_mem::tests::in_memory_offchain_storage ... ok
test client::tests::uncles_with_multiple_forks ... ok
test genesis::tests::construct_genesis_should_work_with_wasm ... ok
test leaves::tests::finalization_consistent_with_disk ... ok
test leaves::tests::flush_to_disk ... ok
test leaves::tests::it_works ... ok
test leaves::tests::two_leaves_same_height_can_be_included ... ok
test leaves::tests::undo_finalization ... ok
test light::backend::tests::light_aux_store_is_updated_via_non_importing_op ... ok
test light::backend::tests::local_state_is_created_when_genesis_state_is_available ... ok
test light::backend::tests::unavailable_state_is_created_when_genesis_state_is_unavailable ... ok
test light::call_executor::tests::code_is_executed_at_genesis_only ... ok
[2020-01-14T06:45:57Z ERROR sp_io::logging] panicked at 'Invalid transaction', /Users/Mitsu/coding/shunp/substrate_template/basechain2/test-utils/runtime/src/system.rs:119:67
test genesis::tests::construct_genesis_with_bad_transaction_should_panic ... ok
test light::fetcher::tests::changes_proof_is_generated_and_checked_when_headers_are_not_pruned ... ok

====================

Version: 1.2.3

stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
      backtrace::backtrace::trace_unsynchronized
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
   1: backtrace::backtrace::trace
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:53
   2: backtrace::capture::Backtrace::create
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/capture.rs:164
   3: backtrace::capture::Backtrace::new
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/capture.rs:128
   4: sp_panic_handler::panic_hook
             at primitives/panic-handler/src/lib.rs:148
   5: sp_panic_handler::set::{{closure}}
             at primitives/panic-handler/src/lib.rs:58
   6: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:468
   7: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:373
   8: rust_begin_unwind
             at src/libstd/panicking.rs:302
   9: core::panicking::panic_fmt
             at src/libcore/panicking.rs:139
  10: core::result::unwrap_failed
             at src/libcore/result.rs:1165
  11: core::result::Result<T,E>::expect
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/result.rs:960
  12: <sp_state_machine::ext::Ext<H,N,B,T> as sp_externalities::Externalities>::storage::{{closure}}
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine/src/ext.rs:160
  13: core::option::Option<T>::unwrap_or_else
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/option.rs:419
  14: <sp_state_machine::ext::Ext<H,N,B,T> as sp_externalities::Externalities>::storage
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine/src/ext.rs:159
  15: <&mut dyn sp_externalities::Externalities as sp_io::storage::Storage>::get
             at primitives/io/src/lib.rs:90
  16: sp_io::storage::get::{{closure}}
             at primitives/io/src/lib.rs:86
  17: sp_externalities::scope_limited::ext::with::{{closure}}
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/<::environmental::environmental macros>:32
  18: environmental::with::{{closure}}
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/environmental-1.0.2/src/lib.rs:103
  19: std::thread::local::LocalKey<T>::try_with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:262
  20: std::thread::local::LocalKey<T>::with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:239
  21: environmental::with
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/environmental-1.0.2/src/lib.rs:97
  22: sp_externalities::scope_limited::ext::with
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/<::environmental::environmental macros>:32
  23: sp_externalities::scope_limited::with_externalities
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/externalities/src/scope_limited.rs:36
  24: sp_io::storage::get
             at primitives/io/src/lib.rs:86
  25: <<sp_io::storage::HostFunctions as sp_wasm_interface::HostFunctions>::host_functions::ExtStorageGetVersion1 as sp_wasm_interface::Function>::execute
             at primitives/io/src/lib.rs:86
  26: <sc_executor_wasmi::FunctionExecutor as wasmi::host::Externals>::invoke_index
             at client/executor/wasmi/src/lib.rs:339
  27: wasmi::func::FuncInstance::invoke
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-0.6.2/src/func.rs:151
  28: wasmi::runner::Interpreter::run_interpreter_loop
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-0.6.2/src/runner.rs:307
  29: wasmi::runner::Interpreter::start_execution
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-0.6.2/src/runner.rs:215
  30: wasmi::func::FuncInstance::invoke
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-0.6.2/src/func.rs:146
  31: wasmi::module::ModuleInstance::invoke_export
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmi-0.6.2/src/module.rs:639
  32: sc_executor_wasmi::call_in_wasm_module::{{closure}}
             at client/executor/wasmi/src/lib.rs:415
  33: environmental::using::{{closure}}
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/environmental-1.0.2/src/lib.rs:88
  34: std::thread::local::LocalKey<T>::try_with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:262
  35: std::thread::local::LocalKey<T>::with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:239
  36: environmental::using
             at /Users/Mitsu/.cargo/registry/src/github.com-1ecc6299db9ec823/environmental-1.0.2/src/lib.rs:65
  37: sp_externalities::scope_limited::ext::using
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/<::environmental::environmental macros>:29
  38: sp_externalities::scope_limited::set_and_run_with_externalities
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/externalities/src/scope_limited.rs:29
  39: sc_executor_wasmi::call_in_wasm_module
             at client/executor/wasmi/src/lib.rs:413
  40: <sc_executor_wasmi::WasmiRuntime as sc_executor_common::wasm_runtime::WasmRuntime>::call
             at client/executor/wasmi/src/lib.rs:614
  41: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call::{{closure}}::{{closure}}
             at executor/src/native_executor.rs:221
  42: std::panicking::try::do_call
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:287
  43: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:78
  44: std::panicking::try
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:265
  45: std::panic::catch_unwind
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:396
  46: sc_executor::native_executor::safe_call
             at executor/src/native_executor.rs:42
  47: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call::{{closure}}
             at executor/src/native_executor.rs:220
  48: sc_executor::native_executor::NativeExecutor<D>::with_runtime::{{closure}}
             at executor/src/native_executor.rs:148
  49: std::thread::local::LocalKey<T>::try_with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:262
  50: std::thread::local::LocalKey<T>::with
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/local.rs:239
  51: sc_executor::native_executor::NativeExecutor<D>::with_runtime
             at executor/src/native_executor.rs:136
  52: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
             at executor/src/native_executor.rs:201
  53: sp_state_machine::StateMachine<B,H,N,T,Exec>::execute_aux
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine/src/lib.rs:287
  54: sp_state_machine::StateMachine<B,H,N,T,Exec>::execute_using_consensus_failure_handler
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine/src/lib.rs:426
  55: sp_state_machine::execution_proof_check_on_trie_backend
             at /Users/Mitsu/coding/shunp/substrate_template/basechain2/primitives/state-machine/src/lib.rs:531
  56: sc_client::light::call_executor::check_execution_proof_with_make_header
             at client/src/light/call_executor.rs:262
  57: sc_client::light::call_executor::tests::execution_proof_is_generated_and_checked::execute_with_proof_failure
             at client/src/light/call_executor.rs:405
  58: sc_client::light::call_executor::tests::execution_proof_is_generated_and_checked
             at client/src/light/call_executor.rs:462
  59: sc_client::light::call_executor::tests::execution_proof_is_generated_and_checked::{{closure}}
             at client/src/light/call_executor.rs:365
  60: core::ops::function::FnOnce::call_once
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/ops/function.rs:227
  61: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942
  62: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:78
  63: std::panicking::try
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:265
      std::panic::catch_unwind
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:396
      test::run_test_in_process
             at src/libtest/lib.rs:570
      test::run_test::run_test_inner::{{closure}}
             at src/libtest/lib.rs:473
  64: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/sys_common/backtrace.rs:129
  65: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/mod.rs:469
      <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:317
      std::panicking::try::do_call
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:287
  66: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:78
  67: std::panicking::try
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:265
      std::panic::catch_unwind
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:396
      std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/mod.rs:468
      core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/ops/function.rs:227
  68: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942
  69: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942
      std::sys_common::thread::start_thread
             at src/libstd/sys_common/thread.rs:13
      std::sys::unix::thread::Thread::new::thread_start
             at src/libstd/sys/unix/thread.rs:79
  70: <unknown>
  71: <unknown>

Thread 'light::call_executor::tests::execution_proof_is_generated_and_checked' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0xcf415fde32d41562e06508f8d0c927de2fab7eb52f2fa5801f04fa9fa965dcf1"', src/libcore/result.rs:1165

This is a bug. Please report it at:

    TEST

test light::call_executor::tests::execution_proof_is_generated_and_checked ... ok
test light::fetcher::tests::check_body_proof_faulty ... ok
test light::fetcher::tests::check_body_proof_of_same_data_should_succeed ... ok
test in_mem::tests::test_blockchain_query_by_number_gets_canonical ... ok
test light::fetcher::tests::changes_proof_is_generated_and_checked_when_headers_are_pruned ... ok
test in_mem::tests::test_leaves_with_complex_block_tree ... ok
test light::fetcher::tests::check_header_proof_fails_if_cht_root_is_invalid ... ok
test light::fetcher::tests::check_header_proof_fails_if_invalid_header_provided ... ok
test light::fetcher::tests::check_changes_proof_fails_if_proof_is_wrong ... ok
test light::fetcher::tests::storage_child_read_proof_is_generated_and_checked ... ok
test light::fetcher::tests::storage_read_proof_is_generated_and_checked ... ok
test light::fetcher::tests::check_changes_tries_proof_fails_if_proof_is_wrong ... ok
test light::fetcher::tests::header_proof_is_generated_and_checked ... ok

test result: ok. 57 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_client_api-02cb4ca94cf9b8a2

running 4 tests
test notifications::tests::should_not_send_empty_notifications ... ok
test notifications::tests::triggering_change_should_notify_wildcard_listeners ... ok
test notifications::tests::should_cleanup_subscribers_if_dropped ... ok
test notifications::tests::should_only_notify_interested_listeners ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_client_db-d4fd3b820238997f

running 72 tests
test cache::list_cache::tests::fork_destroy_works ... ok
test cache::list_cache::tests::ancient_entries_are_pruned_when_pruning_enabled ... ok
test cache::list_cache::tests::fork_try_append_works ... ok
test cache::list_cache::tests::is_connected_to_block_fails ... ok
test cache::list_cache::tests::is_finalized_block_fails ... ok
test cache::list_cache::tests::is_finalized_block_works ... ok
test cache::list_cache::tests::is_connected_to_block_works ... ok
test cache::list_cache::tests::fork_matches_works ... ok
test cache::list_cache::tests::fork_try_append_or_fork_works ... ok
test cache::list_cache::tests::list_find_unfinalized_fork_works ... ok
test cache::list_cache::tests::list_on_block_finalized_works ... ok
test cache::list_cache::tests::read_forks_fails ... ok
test cache::list_cache::tests::read_forks_works ... ok
test cache::list_cache::tests::list_transaction_commit_works ... ok
test cache::list_cache::tests::list_value_at_block_works ... ok
test cache::list_entry::tests::entry_search_best_before_fails ... ok
test cache::list_entry::tests::entry_search_best_before_works ... ok
test cache::list_entry::tests::entry_try_update_works ... ok
test cache::list_cache::tests::revert_block_works ... ok
test children::tests::children_write_read_remove ... ok
test light::tests::aux_store_works ... ok
test cache::list_cache::tests::list_on_block_insert_works ... ok
test light::tests::does_not_return_unknown_header ... ok
test light::tests::database_is_reopened ... ok
test light::tests::get_cht_fails_for_genesis_block ... ok
test light::tests::get_cht_fails_for_non_existant_cht ... ok
test light::tests::cache_can_be_initialized_after_genesis_inserted ... ok
test light::tests::import_header_works ... ok
test light::tests::lowest_common_ancestor_works ... ok
test light::tests::returns_block_hash ... ok
test light::tests::returns_block_status ... ok
test light::tests::returns_info ... ok
test light::tests::returns_known_header ... ok
test light::tests::tree_route_works ... ok
test offchain::tests::should_compare_and_set_and_clear_the_locks_map ... ok
test offchain::tests::should_compare_and_set_on_empty_field ... ok
test light::tests::authorities_are_cached ... ok
test storage_cache::qc::fork2 ... ok
test storage_cache::qc::fork3 ... ok
test light::tests::get_cht_works ... ok
test storage_cache::qc::reorg ... ok
test storage_cache::qc::reorg2 ... ok
test storage_cache::qc::smoke ... ok
test storage_cache::tests::double_fork ... ok
test storage_cache::tests::fix_storage_mismatch_issue ... ok
test storage_cache::tests::should_remove_lru_items_based_on_tracking_used_size ... ok
test storage_cache::tests::should_track_used_size_correctly ... ok
test storage_cache::tests::simple_fork ... ok
test storage_cache::tests::smoke ... ok
test tests::block_hash_inserted_correctly ... ok
test tests::changes_trie_storage_works ... ok
test tests::changes_trie_storage_works_with_forks ... ok
test tests::changes_tries_with_digest_are_pruned_on_finalization ... ok
test tests::changes_tries_without_digest_are_pruned_on_finalization ... ok
test tests::delete_only_when_negative_rc ... ok
test tests::lowest_common_ancestor_works ... ok
test tests::set_state_data ... ok
test tests::test_aux ... ok
test storage_cache::qc::head_complete ... ok
test storage_cache::qc::canon_complete ... ok
test tests::test_finalize_block_with_justification ... ok
test tests::test_finalize_multiple_blocks_in_single_op ... ok
test tests::test_finalize_non_sequential ... ok
test tests::test_leaves_pruned_on_finality ... ok
test light::tests::finalized_ancient_headers_are_replaced_with_cht ... ok
test tests::test_blockchain_query_by_number_gets_canonical ... ok
test tests::tree_route_child ... ok
test tests::tree_route_works ... ok
test utils::tests::number_index_key_doesnt_panic ... ok
test tests::test_children_with_complex_block_tree ... ok
test tests::test_leaves_with_complex_block_tree ... ok
test tests::test_tree_route_regression ... test tests::test_tree_route_regression has been running for over 60 seconds
test tests::test_tree_route_regression ... ok

test result: ok. 72 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_consensus_aura-0572c1a79433a46c

running 2 tests
test tests::authorities_call_works ... ok
test tests::authoring_blocks ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_consensus_babe-6c90f91167e6a6c4

running 15 tests
test epoch_changes::tests::genesis_epoch_is_created_but_not_imported ... ok
test epoch_changes::tests::two_block_ones_dont_conflict ... ok
test epoch_changes::tests::epoch_changes_between_blocks ... ok
test tests::can_author_block ... ok
test tests::malformed_pre_digest_rejected ... ok
test tests::rejects_empty_block ... ok
test tests::importing_block_one_sets_genesis_epoch ... ok
test tests::rejects_missing_consensus_digests ... ok
test tests::rejects_missing_inherent_digest ... ok
test tests::sig_is_not_pre_digest ... ok
test tests::verify_slots_are_strictly_increasing ... ok
test tests::wrong_consensus_engine_id_rejected ... ok
thread 'import-queue-worker-0' panicked at 'verification failed!: "Header 0x82101cfea311f3c7b8808647c69cbcfaa29955be1a33562a365ed327a6f414e9 has a bad seal"', src/libcore/result.rs:1165:5
test tests::rejects_missing_seals ... ok
test tests::authoring_blocks ... test tests::authoring_blocks has been running for over 60 seconds
test tests::importing_epoch_change_block_prunes_tree ... test tests::importing_epoch_change_block_prunes_tree has been running for over 60 seconds
test tests::authoring_blocks ... ok
test tests::importing_epoch_change_block_prunes_tree ... ok

test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_consensus_pow-ee9e817c9aa29caf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_consensus_slots-796c794d28a7e176

running 1 test
test aux_schema::test::check_equivocation_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_consensus_uncles-078f6dd6c083b635

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_executor-7aaa2cbb48325f10

running 51 tests
test integration_tests::blake2_128_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::blake2_256_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::clear_prefix_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::blake2_256_should_work::_wasmexecutionmethod_compiled ... test integration_tests::blake2_256_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::blake2_128_should_work::_wasmexecutionmethod_compiled ... test integration_tests::blake2_128_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::clear_prefix_should_work::_wasmexecutionmethod_compiled ... test integration_tests::clear_prefix_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::ed25519_verify_should_work::_wasmexecutionmethod_compiled ... test integration_tests::ed25519_verify_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::clear_prefix_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::ed25519_verify_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::offchain_http_should_work::_wasmexecutionmethod_compiled ... test integration_tests::offchain_http_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::blake2_256_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::blake2_128_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::offchain_http_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::ed25519_verify_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::offchain_local_storage_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::offchain_http_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::ordered_trie_root_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::panicking_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::offchain_local_storage_should_work::_wasmexecutionmethod_compiled ... test integration_tests::offchain_local_storage_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::ordered_trie_root_should_work::_wasmexecutionmethod_compiled ... test integration_tests::ordered_trie_root_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::panicking_should_work::_wasmexecutionmethod_compiled ... test integration_tests::panicking_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::returning_should_work::_wasmexecutionmethod_compiled ... test integration_tests::returning_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::returning_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::ordered_trie_root_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::offchain_local_storage_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::returning_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::corrupted_module::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::invoke_args::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::corrupted_module::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::corrupted_module::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::invoke_args::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::invoke_args::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::return_val::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::return_val::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::corrupted_module::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::return_val::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::invoke_args::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::sandbox_should_trap_when_heap_exhausted::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::return_val::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::sandbox_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::sandbox_should_trap_when_heap_exhausted::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::sandbox_should_trap_when_heap_exhausted::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::sandbox_should_work::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::sandbox_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::sandbox_trap::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::sandbox_trap::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::sandbox_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::sandbox_trap::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::sandbox_should_trap_when_heap_exhausted::_wasmexecutionmethod_compiled ... ok
test integration_tests::panicking_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::sandbox_trap::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::start_called::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::start_fn_ok::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::start_fn_traps::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sandbox::start_called::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::start_called::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::start_fn_ok::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::start_fn_ok::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::start_fn_traps::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::start_fn_traps::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::unlinkable_module::_wasmexecutionmethod_compiled ... test integration_tests::sandbox::unlinkable_module::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sandbox::unlinkable_module::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::start_fn_ok::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::start_fn_traps::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::start_called::_wasmexecutionmethod_compiled ... ok
test integration_tests::sandbox::unlinkable_module::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sha2_256_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sr25519_verify_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::storage_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::sr25519_verify_should_work::_wasmexecutionmethod_compiled ... test integration_tests::sr25519_verify_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sha2_256_should_work::_wasmexecutionmethod_compiled ... test integration_tests::sha2_256_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::storage_should_work::_wasmexecutionmethod_compiled ... test integration_tests::storage_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::twox_128_should_work::_wasmexecutionmethod_compiled ... test integration_tests::twox_128_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::storage_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::twox_128_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::twox_256_should_work::_wasmexecutionmethod_compiled ... test integration_tests::twox_256_should_work::_wasmexecutionmethod_compiled has been running for over 60 seconds
test integration_tests::sha2_256_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::twox_128_should_work::_wasmexecutionmethod_compiled ... ok
test integration_tests::sr25519_verify_should_work::_wasmexecutionmethod_compiled ... ok
test native_executor::tests::native_executor_registers_custom_interface ... ok
test wasm_runtime::tests::host_functions_are_equal ... ok
test tests::call_in_interpreted_wasm_works ... ok
test integration_tests::twox_256_should_work::_wasmexecutionmethod_interpreted ... ok
test integration_tests::twox_256_should_work::_wasmexecutionmethod_compiled ... ok

test result: ok. 51 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_executor_common-8dd816f0e8332022

running 17 tests
test allocator::tests::should_allocate_properly ... ok
test allocator::tests::should_always_align_pointers_to_multiples_of_8 ... ok
test allocator::tests::should_allocate_max_possible_allocation_size ... ok
test allocator::tests::should_build_linked_list_of_free_areas_properly ... ok
test allocator::tests::should_calculate_total_heap_size_to_zero ... ok
test allocator::tests::should_calculate_total_size_of_zero ... ok
test allocator::tests::should_get_item_size_from_index ... ok
test allocator::tests::should_deallocate_and_reallocate_properly ... ok
test allocator::tests::should_free_properly ... ok
test allocator::tests::should_get_max_item_size_from_index ... ok
test allocator::tests::should_include_prefixes_in_total_heap_size ... ok
test allocator::tests::should_increment_pointers_properly ... ok
test allocator::tests::should_not_allocate_if_full ... ok
test allocator::tests::should_not_allocate_if_requested_size_too_large ... ok
test allocator::tests::should_not_allocate_if_too_large ... ok
test allocator::tests::should_read_and_write_u64_correctly ... ok
test allocator::tests::should_return_error_when_bumper_greater_than_heap_size ... ok

test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_executor_wasmi-ef3ad86bb3c4bb1c

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_executor_wasmtime-0b613174833c8a15

running 2 tests
test util::tests::test_read_memory_into ... ok
test util::tests::test_write_memory_from ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_finality_grandpa-26ab7a17fc077bd3

running 72 tests
test authorities::tests::changes_iterated_in_pre_order ... ok
test authorities::tests::current_limit_filters_min ... ok
test authorities::tests::enacts_standard_change_works ... ok
test authorities::tests::disallow_multiple_changes_being_finalized_at_once ... ok
test authorities::tests::forced_changes ... ok
test authorities::tests::apply_change ... ok
test communication::gossip::tests::detects_honest_out_of_scope_catch_requests ... ok
test communication::gossip::tests::doesnt_expire_next_round_messages ... ok
test communication::gossip::tests::doesnt_send_catch_up_requests_to_non_authorities_when_observer_enabled ... ok
test communication::gossip::tests::doesnt_send_catch_up_requests_when_disabled ... ok
test communication::gossip::tests::invalid_view_change ... ok
test communication::gossip::tests::issues_catch_up_request_on_neighbor_packet_import ... ok
test communication::gossip::tests::message_from_unknown_authority_discarded ... ok
test communication::gossip::tests::messages_not_expired_immediately ... ok
test communication::gossip::tests::non_authorities_never_gossip_messages_on_first_round_duration ... ok
test communication::gossip::tests::only_restricts_gossip_to_authorities_after_a_minimum_threshold ... ok
test aux_schema::test::write_read_concluded_rounds ... ok
test communication::gossip::tests::sends_catch_up_requests_to_non_authorities_when_observer_disabled ... ok
test communication::gossip::tests::unanswerable_catch_up_requests_discarded ... ok
test communication::gossip::tests::unknown_peer_cannot_be_updated ... ok
test communication::gossip::tests::unsolicited_catch_up_messages_discarded ... ok
test aux_schema::test::load_decode_from_v1_migrates_data_format ... ok
test communication::gossip::tests::view_global_message_rules ... ok
test aux_schema::test::load_decode_from_v0_migrates_data_format ... ok
test communication::gossip::tests::view_vote_rules ... ok
test communication::gossip::tests::update_peer_state ... ok
test communication::tests::peer_with_higher_view_leads_to_catch_up_request ... ok
test finality_proof::tests::finality_proof_check_fails_when_intemediate_fragment_has_no_authorities_proof ... ok
test finality_proof::tests::finality_proof_check_fails_when_intemediate_fragment_has_unknown_headers ... ok
test finality_proof::tests::finality_proof_check_fails_when_proof_decode_fails ... ok
test finality_proof::tests::finality_proof_check_fails_when_proof_is_empty ... ok
test finality_proof::tests::finality_proof_check_works ... ok
test finality_proof::tests::finality_proof_fails_for_non_canonical_block ... ok
test finality_proof::tests::finality_proof_finalized_earlier_block_if_no_justification_for_target_is_known ... ok
test finality_proof::tests::finality_proof_is_none_if_first_justification_is_generated_by_unknown_set ... ok
test finality_proof::tests::finality_proof_is_none_if_no_justification_known ... ok
test finality_proof::tests::finality_proof_is_none_if_no_more_last_finalized_blocks ... ok
test finality_proof::tests::finality_proof_works_with_authorities_change ... ok
test finality_proof::tests::finality_proof_works_without_authorities_change ... ok
test finality_proof::tests::finality_prove_fails_with_invalid_range ... ok
test light_import::tests::aux_data_loaded_on_restart ... ok
test light_import::tests::aux_data_updated_on_start ... ok
test light_import::tests::finality_proof_not_required_when_consensus_data_does_not_changes_and_correct_justification_provided ... ok
test light_import::tests::finality_proof_not_required_when_consensus_data_does_not_changes_and_no_justification_provided ... ok
test light_import::tests::finality_proof_required_when_consensus_data_changes_and_incorrect_justification_provided ... ok
test communication::tests::bad_commit_leads_to_report ... ok
test communication::tests::good_commit_leads_to_relay ... ok
test tests::consensus_changes_works ... ok
test light_import::tests::finality_proof_required_when_consensus_data_changes_and_no_justification_provided ... ok
test communication::gossip::tests::progressively_gossips_to_more_peers ... ok
test tests::allows_reimporting_change_blocks ... ok
test tests::finality_proof_is_fetched_by_light_client_when_consensus_data_changes ... ok
test tests::empty_finality_proof_is_returned_to_light_client_when_authority_set_is_different ... ok
test tests::finalize_3_voters_1_full_observer ... ok
test tests::finalize_3_voters_1_light_observer ... ok
test tests::finalize_3_voters_no_observers ... ok
test tests::imports_justification_for_regular_blocks_on_import ... ok
test tests::grandpa_environment_respects_voting_rules ... ok
test tests::finalizes_multiple_pending_changes_in_order ... test tests::finalizes_multiple_pending_changes_in_order has been running for over 60 seconds
test tests::finalizes_multiple_pending_changes_in_order ... ok
test tests::force_change_to_new_set ... ok
test tests::justification_is_emitted_when_consensus_data_changes ... ok
test tests::test_bad_justification ... ok
test tests::justification_is_generated_periodically ... test tests::justification_is_generated_periodically has been running for over 60 seconds
test tests::justification_is_generated_periodically ... ok
test tests::sync_justifications_on_change_blocks ... ok
test until_imported::tests::blocking_catch_up_message ... ok
test until_imported::tests::blocking_commit_message ... ok
test until_imported::tests::catch_up_message_all_known ... ok
test until_imported::tests::commit_message_all_known ... ok
test tests::transition_3_voters_twice_1_full_observer ... test tests::transition_3_voters_twice_1_full_observer has been running for over 60 seconds
test until_imported::tests::request_block_sync_for_needed_blocks ... ok
test tests::voter_catches_up_to_latest_round_when_behind ... test tests::voter_catches_up_to_latest_round_when_behind has been running for over 60 seconds
test tests::transition_3_voters_twice_1_full_observer ... ok
test tests::voter_catches_up_to_latest_round_when_behind ... ok
[2020-01-14T07:10:07Z ERROR sc_network::protocol] Notifications protocol already registered: [70, 82, 78, 75]
test tests::voter_persists_its_votes ... ok

test result: ok. 72 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_keystore-ce6ae86a8f9429be

running 6 tests
test tests::store_ignores_files_with_invalid_name ... ok
test tests::basic_store ... ok
test tests::store_unknown_and_extract_it ... ok
test tests::test_insert_ephemeral_from_seed ... ok
test tests::password_being_used ... ok
test tests::public_keys_are_returned ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_network-2c082e2c77c44312

running 35 tests
test config::tests::test_secret_new ... ok
test config::tests::test_secret_input ... ok
test config::tests::test_secret_file ... ok
test protocol::legacy_proto::tests::basic_two_nodes_requests_in_parallel ... ok
test protocol::light_dispatch::tests::disconnects_from_idle_peer ... ok
test protocol::light_dispatch::tests::disconnects_from_peer_on_incorrect_response ... ok
test protocol::light_dispatch::tests::disconnects_from_peer_on_response_with_wrong_id ... ok
test protocol::light_dispatch::tests::disconnects_from_peer_on_unexpected_response ... ok
test protocol::light_dispatch::tests::disconnects_from_peer_on_wrong_response_type ... ok
test protocol::light_dispatch::tests::disconnects_from_timeouted_peer ... ok
test protocol::light_dispatch::tests::does_not_loop_forever_after_dispatching_request_to_last_peer ... ok
test protocol::light_dispatch::tests::does_not_sends_request_to_peer_who_has_no_required_block ... ok
test protocol::light_dispatch::tests::knows_about_peers_roles ... ok
test protocol::light_dispatch::tests::receives_remote_call_response ... ok
test protocol::light_dispatch::tests::receives_remote_changes_response ... ok
test protocol::light_dispatch::tests::receives_remote_failure_after_retry_count_failures ... ok
test protocol::light_dispatch::tests::receives_remote_header_response ... ok
test protocol::light_dispatch::tests::receives_remote_read_child_response ... ok
test protocol::light_dispatch::tests::receives_remote_read_response ... ok
test protocol::light_dispatch::tests::remote_body_with_one_block_body_should_succeed ... ok
test protocol::light_dispatch::tests::remote_body_with_three_bodies_should_fail ... ok
test protocol::light_dispatch::tests::tries_to_send_all_pending_requests ... ok
test protocol::sync::blocks::test::create_clear ... ok
test protocol::sync::blocks::test::insert_blocks ... ok
test protocol::sync::blocks::test::large_gap ... ok
test protocol::sync::extra_requests::tests::anecstor_roots_are_finalized_when_finality_notification_is_missed ... ok
test protocol::sync::extra_requests::tests::disconnecting_implies_rescheduling ... ok
test protocol::sync::extra_requests::tests::new_roots_schedule_new_request ... ok
test protocol::legacy_proto::tests::two_nodes_transfer_lots_of_packets ... ok
test protocol::sync::extra_requests::tests::request_is_rescheduled_when_earlier_block_is_finalized ... ok
test protocol::sync::extra_requests::tests::no_response_reschedules ... ok
test protocol::util::tests::maintains_limit ... ok
test protocol::sync::extra_requests::tests::requests_are_processed_in_order ... ok
test discovery::tests::discovery_working ... ok
test protocol::legacy_proto::tests::reconnect_after_disconnect ... ok

test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_network_gossip-de5c2a4b9e7460e3

running 5 tests
test state_machine::tests::collects_garbage ... ok
test state_machine::tests::can_keep_multiple_messages_per_topic ... ok
test state_machine::tests::message_stream_include_those_sent_before_asking_for_stream ... ok
test state_machine::tests::topics_are_localized_to_engine_id ... ok
test state_machine::tests::can_keep_multiple_subscribers_per_topic ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/sc_network_test-9d44901fe23fa9d1

running 28 tests
test block_import::import_single_good_known_block_is_ignored ... ok
test block_import::import_single_good_block_without_header_fails ... ok
test block_import::import_single_good_block_works ... ok
test sync::ancestry_search_works_when_backoff_is_one ... ok
test block_import::async_import_queue_drops ... ok
test sync::ancestry_search_works_when_ancestor_is_genesis ... test sync::ancestry_search_works_when_ancestor_is_genesis has been running for over 60 seconds
test sync::ancestry_search_works_when_common_is_hundred ... test sync::ancestry_search_works_when_common_is_hundred has been running for over 60 seconds
test sync::ancestry_search_works_when_common_is_one ... test sync::ancestry_search_works_when_common_is_one has been running for over 60 seconds
test sync::ancestry_search_works_when_common_is_two ... test sync::ancestry_search_works_when_common_is_two has been running for over 60 seconds
test sync::ancestry_search_works_when_ancestor_is_genesis ... ok
test sync::blocks_are_not_announced_by_light_nodes ... ok
test sync::ancestry_search_works_when_common_is_one ... ok
test sync::can_not_sync_from_light_peer ... ok
test sync::ancestry_search_works_when_common_is_two ... ok
test sync::can_sync_explicit_forks ... test sync::can_sync_explicit_forks has been running for over 60 seconds
test sync::can_sync_small_non_best_forks ... test sync::can_sync_small_non_best_forks has been running for over 60 seconds
test sync::does_not_sync_announced_old_best_block ... test sync::does_not_sync_announced_old_best_block has been running for over 60 seconds
test sync::can_sync_explicit_forks ... ok
test sync::light_peer_imports_header_from_announce ... ok
test sync::can_sync_small_non_best_forks ... ok
test sync::own_blocks_are_announced ... ok
test sync::does_not_sync_announced_old_best_block ... ok
test sync::sync_after_fork_works ... test sync::sync_after_fork_works has been running for over 60 seconds
test sync::sync_cycle_from_offline_to_syncing_to_offline ... test sync::sync_cycle_from_offline_to_syncing_to_offline has been running for over 60 seconds
test sync::sync_from_two_peers_with_ancestry_search_works ... test sync::sync_from_two_peers_with_ancestry_search_works has been running for over 60 seconds
test sync::ancestry_search_works_when_common_is_hundred ... ok
test sync::sync_after_fork_works ... ok
test sync::sync_from_two_peers_works ... test sync::sync_from_two_peers_works has been running for over 60 seconds
test sync::sync_justifications ... ok
test sync::sync_from_two_peers_with_ancestry_search_works ... ok
test sync::sync_justifications_across_forks ... ok
test sync::sync_long_chain_works ... test sync::sync_long_chain_works has been running for over 60 seconds
test sync::sync_no_common_longer_chain_fails ... test sync::sync_no_common_longer_chain_fails has been running for over 60 seconds
test sync::sync_no_common_longer_chain_fails ... ok
test sync::sync_peers_works ... ok
test sync::sync_from_two_peers_works ... ok
test sync::syncs_all_forks ... ok
test sync::syncing_node_not_major_syncing_when_disconnected ... test sync::syncing_node_not_major_syncing_when_disconnected has been running for over 60 seconds
test sync::syncs_header_only_forks ... ok
test sync::syncing_node_not_major_syncing_when_disconnected ... ok
test sync::sync_long_chain_works ... ok
mitsu1124 commented 4 years ago

@shunp local nodeが動き、contract menu表示されました!作業続けます。 (作業遅く申し訳ないですm(__)m) image

mitsu1124 commented 4 years ago

@shunp

wasmをuploadし、instanceを作って、total_supplyをfrontendからcallするところまでは、できました。

次はこれを、frontendに表示しないとですよね。ink!のinstanceがどうfrontendから呼べるか、調べてみます。

image

nphsu commented 4 years ago

@mitsu1124 素晴らしいです!!一歩ずつ着実に進んでますね!

mitsu1124 commented 4 years ago

@shunp 指導してくれる人が素敵だからですね:)

新しくbuildしたbasechain(substrate 2.0)と、frontend tutorial 1-2のフロントエンドを今繋げようとしてるんですが、繋がらないですね。websocket errorは出てないので、port番号は9944で合ってるみたいなんですが。

以下のドキュメントのコードあたりでまずはnodeに繋げられないか、実装してみます。

https://polkadot.js.org/api/examples/promise/01_simple_connect/

image

mitsu1124 commented 4 years ago

TopPage.tsxを以下のように書き換えたところ、errorは出てますが、nodeには繋がったみたい…? instanceの変数をどう呼び出すか、引続き調べてみます。

import * as React from 'react';
import { Typography } from '../../../components';
import { ApiPromise, WsProvider } from '@polkadot/api';

async function main() {
    // Initialise the provider to connect to the local node
    const provider = new WsProvider('ws://127.0.0.1:9944');

    // Create the API and wait until ready
    const api = await ApiPromise.create({ provider });

    // Retrieve the chain & node information information via rpc calls
    const [ chain, nodeName, nodeVersion ] = await Promise.all([
        api.rpc.system.chain(),
        api.rpc.system.name(),
        api.rpc.system.version()
    ]);

    console.log(`You are connected to chain ${chain} using ${nodeName} v${nodeVersion}`);
}

main().catch(console.error).finally(() => process.exit());

const TopPage = () => {
    return <Typography>Top page</Typography>;
};
export {};

image

nphsu commented 4 years ago

@mitsu1124 素晴らしい!もう少しですね!

mitsu1124 commented 4 years ago

@shunp お疲れ様です! ノードにdeployしたwasm instance内の変数取得方法が、調べているんですが、なかなか分からず困っています汗

solidityで言えば、 web3.eth.Contract(JSON.parse(interface)).methods.method名

的な呼び出し方法があるのではと思い、以下のdocumentやpolkadot appのgithubを漁っているんですが…

https://polkadot.js.org/api/substrate/

https://github.com/polkadot-js/apps

github内で見つけたcall.tsxを使えばいけるのでは、と考えているんですが、何か方法ご存知だったりするでしょうかm(__)m

https://github.com/polkadot-js/apps/blob/562e11dc06c656da92ec957cf9de063ebb507cb6/packages/app-contracts/src/Contracts/Call.tsx

mitsu1124 commented 4 years ago

@shunp 今日から作業再開していますm(__)m

現在、以下のコードを参考にしながら、contractの変数を呼ぶコードを書いてみています。 https://github.com/polkadot-js/api/issues/1551

もしくはsrmlを使ってもいけるのかな、と以下のページを読みながら考えてます。 polkadotapiをimportすべき場合と、smrl使う場合って、どう使い分けるイメージなんですかね。 https://substrate.dev/rustdocs/v1.0/srml_contract/index.html

mitsu1124 commented 4 years ago

@shunp あと、もう少しな気がするんですが… 下のerrorを読むと、json fileの引っ張り方が間違っているみたいなので、修正してみます。

TopPage.tsx

import * as React from 'react';
import { Typography } from '../../../components';
import { ApiPromise, WsProvider } from '@polkadot/api';
import { Abi } from '@polkadot/api-contract';
import keyring from '@polkadot/ui-keyring';

const abiJson = require('../../../../../contract/erc20/target/metadata.json');
const contractErc20 = '5EzJZcgviPUSGYo2ueBnZ6eUpKf9DCqwocAiVG7bn18VgjYn';

async function ConnectNodeAndContract() {
    const provider = new WsProvider('ws://127.0.0.1:9944');
    const api = await ApiPromise.create({ provider });

    const abi = new Abi(api.registry, abiJson);
    const address = keyring.encodeAddress('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'); //Alice address
    const pair = keyring.getpair(address);
    const [ chain, nodeName, nodeVersion ] = await Promise.all([
        api.rpc.system.chain(),
        api.rpc.system.name(),
        api.rpc.system.version()
    ]);

    console.log(`You are connected to chain ${chain} using ${nodeName} v${nodeVersion}`);

    api.tx.contracts
        .call(contractErc20, 'total_supply', '5000', abi.messages.total_supply())
        .signAndSend(pair, console.log('Success'));
}

try {
    ConnectNodeAndContract();
} catch (error) {
    console.error;
} finally {
    process.exit;
}

const TopPage = () => {
    return <Typography>Top page</Typography>;
};
export {};

Error

Server running at http://localhost:1234 
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 58 new dependencies.
info Direct dependencies
└─ @polkadot/ui-keyring@0.48.1
info All dependencies
├─ @ledgerhq/hw-transport-node-hid-noevents@5.7.0
├─ @ledgerhq/hw-transport-node-hid@5.7.0
├─ @ledgerhq/hw-transport-u2f@5.7.0
├─ @ledgerhq/hw-transport-webusb@5.7.0
├─ @polkadot/ui-keyring@0.48.1
├─ @types/ledgerhq__hw-transport-node-hid@4.22.1
├─ @types/ledgerhq__hw-transport-u2f@4.21.1
🚨  /Users/Mitsu/coding/shunp/substrate_template/frontend/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/keyring/node_modules/@babel/runtime/package.json: ENOENT: no such file or directory, open '/Users/Mitsu/coding/shunp/substrate_template/frontend/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/keyring/node_modules/@babel/runtime/package.json'
Error: ENOENT: no such file or directory, open '/Users/Mitsu/coding/shunp/substrate_template/frontend/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/keyring/node_modules/@babel/runtime/package.json'
mitsu1124 commented 4 years ago

contract部は以下のページを参考にしています。 https://github.com/polkadot-js/api/tree/master/packages/api-contract

nphsu commented 4 years ago

@mitsu1124 ほんとだ、後すこしですね ビルドの失敗ですよね?node_modules消してyarn試してもらっても良いですか? なんか古いのが残っちゃってるのかな?

mitsu1124 commented 4 years ago

@shunp お疲れ様です。力不足で申し訳ない…。

node_moduleを消してyarnした後も、 keyringとnew ABIの宣言部、そしてapi.tx.contracts部の3箇所でエラーが起きていて、

毎日調べながらdebugしてkeyringはなんとか対処できた(?)可能性があるんですが、ABIの宣言部とapi.tx.contractsのエラーのdebug方法がどうしても思い付きません汗

ABI宣言部のエラー

image

型 'import("/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/types/types").Registry' の引数を型 'import("/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/api-contract/node_modules/@polkadot/types/types").Registry' のパラメーターに割り当てることはできません。
  Property 'findMetaError' is missing in type 'import("/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/types/types").Registry' but required in type 'import("/Users/Mitsu/coding/shunp/substrate_template/frontend/node_modules/@polkadot/api-contract/node_modules/@polkadot/types/types").Registry'.ts(2345)
types.d.ts(297, 5): 'findMetaError' is declared here.

api.tx.contractsのエラー

image

プロパティ 'signAndSend' は型 'Call' に存在しません。ts(2339)

TopPage.tsxのソースコード

import * as React from 'react';
import { Typography } from '../../../components';
import { ApiPromise, WsProvider } from '@polkadot/api';
import { Abi } from '@polkadot/api-contract';
import { Keyring } from '@polkadot/api';
// import keyring from '@polkadot/ui-keyring';
// import { cryptoWaitReady } from '@polkadot/util-crypto';

const abiJson = require('../../../../../contract/erc20/target/metadata.json');
const contractErc20 = '5EzJZcgviPUSGYo2ueBnZ6eUpKf9DCqwocAiVG7bn18VgjYn';

async function ConnectNodeAndContract() {
    const provider = new WsProvider('ws://127.0.0.1:9944');
    const api = await ApiPromise.create({ provider });
    // await cryptoWaitReady();
    const keyring = new Keyring({ type: 'sr25519' });
    const alice = keyring.addFromUri('//Alice', { name: 'Alice default' });
    const abi = new Abi(api.registry, abiJson);
    // keyring.loadAll({ ss58Format: 42, type: 'sr25519' });

    console.log(api);
    console.log(api.registry);
    console.log(keyring);

    // const address = keyring.encodeAddress('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'); //Alice address
    // const pair = keyring.getpair(address);
    const [ chain, nodeName, nodeVersion ] = await Promise.all([
        api.rpc.system.chain(),
        api.rpc.system.name(),
        api.rpc.system.version()
    ]);

    console.log(`You are connected to chain ${chain} using ${nodeName} v${nodeVersion}`);

    api.tx.contracts
        .call(contractErc20, 'total_supply', '5000', abi.messages.total_supply())
        .signAndSend(alice, console.log('Success'));
}

try {
    ConnectNodeAndContract();
} catch (error) {
    console.error;
} finally {
    process.exit;
}

const TopPage = () => {
    return <Typography>Top page</Typography>;
};
export {};

ちなみに参考にしているのは、以下のgithubです。

@polkadot/api-contract https://github.com/polkadot-js/api/tree/master/packages/api-contract

単純に僕のdebug能力が足りないだけかもしれないですが…どう対処すべきか、一緒に考えて頂けたら有り難いです。 これ一旦pull request出した方が、shun君も確認しやすいですかね。