Skip to content

Instantly share code, notes, and snippets.

ts-node src/index.ts contracts putCode <PATH>
ts-node src/index.ts contracts putCode ./path/to/contract_file.wasm
ts-node src/index.ts contracts call (dest: <T::Lookup as StaticLookup>::Source, value: Compact<BalanceOf<T>>, gas_limit: Compact<Gas>, data: Vec<u8>
ts-node src/index.ts contracts call <DEST> <VALUE> <GAS_LIMIT> <DATA>
{
"magicNumber": 1635018093,
"metadata": {
"V11": {
"modules": [
{
"name": "System",
"storage": {
"prefix": "System",
"items": [
This file has been truncated, but you can view the full file.
{
"name": "Edgeware",
"id": "edgeware",
"chainType": "Live",
"bootNodes": [
"/ip4/144.202.61.115/tcp/30333/p2p/QmXTb6R2AvA6FrvD4w2YRD2oj9WQk2f9Dg1dTqGsdxgwuD",
"/ip4/107.191.48.39/tcp/30333/p2p/QmdFq4WXvgokUi5MAcGvzcV4PZmo6fZN2fxcEbcPQioGcK",
"/ip4/66.42.113.164/tcp/30333/p2p/Qmawkfqh4y4vnPWiy87pBnWpgsyy8QrQmUFprDTktgatSm",
"/ip4/144.202.58.79/tcp/30333/p2p/QmXWhRta7P3xW43WbJ6CDH9ZsHwVxFhLJNjpBa6J3jaAqj",
"/ip4/207.148.13.203/tcp/30333/p2p/QmRgKnmZNYVCznVd4ao5UHCHGWieT3sePB5g8v7PSGofD2",
This file has been truncated, but you can view the full file.
{
"name": "Edgeware",
"id": "edgeware",
"chainType": "Live",
"bootNodes": [
"/ip4/144.202.61.115/tcp/30333/p2p/QmXTb6R2AvA6FrvD4w2YRD2oj9WQk2f9Dg1dTqGsdxgwuD",
"/ip4/107.191.48.39/tcp/30333/p2p/QmdFq4WXvgokUi5MAcGvzcV4PZmo6fZN2fxcEbcPQioGcK",
"/ip4/66.42.113.164/tcp/30333/p2p/Qmawkfqh4y4vnPWiy87pBnWpgsyy8QrQmUFprDTktgatSm",
"/ip4/144.202.58.79/tcp/30333/p2p/QmXWhRta7P3xW43WbJ6CDH9ZsHwVxFhLJNjpBa6J3jaAqj",
"/ip4/207.148.13.203/tcp/30333/p2p/QmRgKnmZNYVCznVd4ao5UHCHGWieT3sePB5g8v7PSGofD2",
-- Logs begin at Thu 2019-12-12 14:44:17 UTC, end at Thu 2020-02-20 10:20:49 UTC. --
Feb 20 10:18:49 edgeware-bootnode1 run_node.sh[3487]: 2020-02-20 10:18:49.794 main-tokio- DEBUG sub-libp2p Libp2p => Disconnected(PeerId("QmZ94uMUSeyQFiRfinRCbVdLBcwXNN9odTK9G7cgJmuHqd")): Was disabled (through Dialer { address: "/ip4/51.178.104.232/tcp/30333" })
Feb 20 10:18:50 edgeware-bootnode1 run_node.sh[3487]: 2020-02-20 10:18:50.231 main-tokio- DEBUG sub-libp2p Libp2p => Connected(PeerId("Qmf49y248vcC5x4QXsjYSojpag3yhTEo8h5ux2t7RTWEbA")): Incoming connection
Feb 20 10:18:50 edgeware-bootnode1 run_node.sh[3487]: 2020-02-20 10:18:50.231 main-tokio- DEBUG sub-libp2p PSM <= Incoming(IncomingIndex(623), PeerId("Qmf49y248vcC5x4QXsjYSojpag3yhTEo8h5ux2t7RTWEbA")): Through Listener { local_addr: "/ip4/144.202.61.115/tcp/30333", send_back_addr: "/ip4/149.28.101.7/tcp/34054" }
Feb 20 10:18:50 edgeware-bootnode1 run_node.sh[3487]: 2020-02-20 10:18:50.232 main-tokio- DEBUG sub-libp2p PSM => Accept(IncomingIndex(623), PeerId("Qm
This file has been truncated, but you can view the full file.
-- Logs begin at Tue 2019-12-03 14:49:04 UTC, end at Thu 2020-02-20 10:15:10 UTC. --
Feb 20 10:05:11 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:11 Idle (45 peers), best: #39822 (0xa83e…201f), finalized #39295 (0x26f9…13cc), ⬇ 2.0kiB/s ⬆ 4.2kiB/s
Feb 20 10:05:12 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:12 Imported #39823 (0xcc3f…3238)
Feb 20 10:05:16 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:16 Idle (45 peers), best: #39823 (0xcc3f…3238), finalized #39295 (0x26f9…13cc), ⬇ 2.6kiB/s ⬆ 2.2kiB/s
Feb 20 10:05:18 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:18 Imported #39824 (0xf964…dc7a)
Feb 20 10:05:21 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:21 Idle (45 peers), best: #39824 (0xf964…dc7a), finalized #39295 (0x26f9…13cc), ⬇ 2.2kiB/s ⬆ 3.0kiB/s
Feb 20 10:05:24 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:24 Imported #39825 (0xf0d3…9d01)
Feb 20 10:05:26 edgeware-bootnode5 run_node.sh[26248]: 2020-02-20 10:05:26 Idle (45 peers), best: #398
2020-02-20 01:08:29.049 main INFO sc_cli Edgeware Node
2020-02-20 01:08:29.049 main INFO sc_cli version 3.0.2-db48a47-x86_64-macos
2020-02-20 01:08:29.049 main INFO sc_cli by Commonwealth Labs <hello@commonwealth.im>, 2018-2020
2020-02-20 01:08:29.049 main INFO sc_cli Chain specification: Edgeware
2020-02-20 01:08:29.049 main INFO sc_cli Node name: zesty-sea-5224
2020-02-20 01:08:29.049 main INFO sc_cli Roles: FULL
2020-02-20 01:08:35.593 main INFO sc_service::builder Highest known block at #33215
2020-02-20 01:08:35.594 main INFO sub-libp2p Local node identity is: QmPGeGo2PPK79Vw4JWawTxyXmoYc3cbtRJ3qygsconptLh
2020-02-20 01:08:35.661 main DEBUG afg Voter zesty-sea-5224 noting beginning of round (Round(0), SetId(37)) to network.
2020-02-20 01:08:35.661 main TRACE afg Registered 0 messages for topic 0xc94b58e2bf7365f85a2d7218290f04b6b278c7d9a15f59dcd1709bb293d2c76d (round: 0, set_id: 37)
Compiling sr-sandbox v2.0.0 (https://github.com/paritytech/substrate.git#73f4c118)
error[E0603]: function `memory_teardown` is private
--> /home/jnaviask/.cargo/git/checkouts/substrate-7e08433d4c370a21/73f4c11/primitives/sr-sandbox/src/../without_std.rs:53:12
|
53 | sandbox::memory_teardown(self.memory_idx);
| ^^^^^^^^^^^^^^^
error[E0603]: function `memory_new` is private
--> /home/jnaviask/.cargo/git/checkouts/substrate-7e08433d4c370a21/73f4c11/primitives/sr-sandbox/src/../without_std.rs:72:18
|
72 | match sandbox::memory_new(initial, maximum) {
import {
Amount,
Coin,
KeyRing,
MTX,
Network,
Script,
ScriptNum,
Stack,
Wallet,
Aug 30 22:02:17 testnet2 run_node.sh[23287]: ====================
Aug 30 22:02:17 testnet2 run_node.sh[23287]: stack backtrace:
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 0: substrate_panic_handler::set::{{closure}}::h0e496476732ef085 (0x561aee172e80)
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 1: std::panicking::rust_panic_with_hook::hffcefc09751839d1 (0x561aee2b0939)
Aug 30 22:02:17 testnet2 run_node.sh[23287]: at src/libstd/panicking.rs:481
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 2: std::panicking::begin_panic::h2d888ad4c7a32e9d (0x561aedbc3c15)
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 3: <edgeware_runtime::Runtime as substrate_client::runtime_api::runtime_decl_for_Core::Core<sr_primitives::generic::block::Block<sr_primitives::generic::header::Header<u3
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 4: edgeware_runtime::api::dispatch::h43de90a0f06d44a4 (0x561aedbcdfd5)
Aug 30 22:02:17 testnet2 run_node.sh[23287]: 5: std::panicking::try::do_call::hd59a43ec5acc3922 (0