forked from fluencelabs/nox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
138 lines (129 loc) · 3.73 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
release:
cargo build --release
build: release
test:
# run tests on release because current WASM runtime is too slow on debug
cargo test --release
server:
WASM_LOG="trace" \
RUST_LOG="info,\
aquamarine::aqua_runtime=off,\
ipfs_effector=off,\
ipfs_pure=off,\
system_services=debug,\
marine_core::module::marine_module=info,\
aquamarine=warn,\
tokio_threadpool=info,\
tokio_reactor=info,\
mio=info,\
tokio_io=info,\
soketto=info,\
yamux=info,\
multistream_select=info,\
libp2p_secio=info,\
libp2p_websocket::framed=info,\
libp2p_ping=info,\
libp2p_core::upgrade::apply=info,\
libp2p_kad::kbucket=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
run-console=debug,\
wasmtime_cranelift=off,\
wasmtime_jit=off,\
particle_reap=debug" \
cargo run --release -p nox
spell:
WASM_LOG="trace" \
RUST_LOG="info,\
aquamarine::aqua_runtime=off,\
ipfs_effector=debug,\
ipfs_pure=debug,\
run-console=debug,\
system_services=debug,\
spell_even_bus=trace,\
marine_core::module::marine_module=info,\
aquamarine::log=debug,\
aquamarine=warn,\
tokio_threadpool=info,\
tokio_reactor=info,\
mio=info,\
tokio_io=info,\
soketto=info,\
yamux=info,\
multistream_select=info,\
libp2p_secio=info,\
libp2p_websocket::framed=info,\
libp2p_ping=info,\
libp2p_core::upgrade::apply=info,\
libp2p_kad::kbucket=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
wasmtime_cranelift=off,\
wasmtime_jit=off,\
particle_protocol=off,\
particle_reap=debug" \
cargo run --release -p nox
local-env:
docker compose -f docker-compose.yml up -d
local-env-logs:
docker compose -f docker-compose.yml logs -f
# mumbai 0x93A2897deDcC5478a9581808F5EC25F4FadbC312
# local 0x0f68c702dC151D07038fA40ab3Ed1f9b8BAC2981
local-nox:
FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR="/ip4/127.0.0.1/tcp/5001" \
FLUENCE_ENV_CONNECTOR_API_ENDPOINT="http://127.0.0.1:8545" \
FLUENCE_ENV_CONNECTOR_CONTRACT_ADDRESS="0x0f68c702dC151D07038fA40ab3Ed1f9b8BAC2981" \
FLUENCE_ENV_CONNECTOR_WALLET_KEY="0xfdc4ba94809c7930fe4676b7d845cbf8fa5c1beae8744d959530e5073004cf3f" \
FLUENCE_ENV_CONNECTOR_FROM_BLOCK=earliest \
FLUENCE_ENV_AQUA_IPFS_LOCAL_API_MULTIADDR="/ip4/127.0.0.1/tcp/5001" \
FLUENCE_SYSTEM_SERVICES__DECIDER__DECIDER_PERIOD_SEC=60 \
FLUENCE_MAX_SPELL_PARTICLE_TTL="55s" \
FLUENCE_SYSTEM_SERVICES__DECIDER__NETWORK_ID=31337 \
FLUENCE_SYSTEM_SERVICES__AQUA_IPFS__IPFS_BINARY_PATH="$(shell which ipfs)" \
FLUENCE_SYSTEM_SERVICES__ENABLE="aqua-ipfs,decider" \
WASM_LOG="trace" \
RUST_LOG="debug,\
execution=trace,\
expired=info,\
effectors=info,\
dispatcher=info,\
aquamarine::plumber=info,\
aquamarine::partice_functions=debug,\
aquamarine::log=debug,\
aquamarine=info,\
aquamarine::aqua_runtime=warn,\
aquamarine::particle_executor=warn,\
ipfs_effector=off,\
ipfs_pure=off,\
system_services=debug,\
marine_core::module::marine_module=info,\
tokio_threadpool=info,\
tokio_reactor=info,\
mio=info,\
tokio_io=info,\
soketto=info,\
yamux=info,\
multistream_select=info,\
libp2p_secio=info,\
libp2p_websocket::framed=info,\
libp2p_ping=info,\
libp2p_core::upgrade::apply=info,\
libp2p_kad::kbucket=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
cranelift_codegen=info,\
wasmer_wasi=info,\
run-console=trace,\
wasmtime_cranelift=off,\
wasmtime_jit=off,\
libp2p_tcp=off,\
libp2p_swarm=off,\
particle_protocol::libp2p_protocol::upgrade=info,\
libp2p_mplex=off,\
particle_reap=debug" \
cargo run --release -p nox -- -k "2WijTVdhVRzyZamWjqPx4V4iNMrajegNMwNa2PmvPSZV6RRpo5M2fsPWdQr22HVRubuJhhSw8BrWiGt6FPhFAuXy" --aqua-pool-size 3 --ws-port 9992
.PHONY: server server-debug test release build deploy local-nox local-env local-env-logs