-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 1.71 KB
/
Makefile
File metadata and controls
53 lines (42 loc) · 1.71 KB
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
-include .env
deploy-hasher:
cd contracts && forge script script/DeployHasher.s.sol:DeployHasherScript --rpc-url ${RPC_URL} --broadcast -vvvv
deploy-bramble:
cd contracts && forge script script/Deploy.s.sol:DeployScript --rpc-url ${RPC_URL} --broadcast -vvvv
deposit-script:
cd contracts && forge script script/Deploy.s.sol:DepositScript --rpc-url ${RPC_URL} --broadcast -vvvv
simulate-trap:
cd contracts && forge script script/Deploy.s.sol:SimulateTrapScript --rpc-url ${RPC_URL} --broadcast -vvvv
set-trap:
cd contracts && forge script script/Deploy.s.sol:SetTrapScript --rpc-url ${RPC_URL} --broadcast -vvvv
# Operator commands
# register the operator within the network if not already registered
register-operator:
drosera-operator register \
--eth-rpc-url ${RPC_URL} \
--eth-private-key ${DROSERA_PRIVATE_KEY} \
--drosera-address ${DROSERA_ADDRESS}
run-operator:
drosera-operator node \
--eth-rpc-url ${RPC_URL} \
--eth-private-key ${DROSERA_PRIVATE_KEY} \
--network-external-p2p-address localhost \
--drosera-address ${DROSERA_ADDRESS} \
--log-level info \
--listen-address 0.0.0.0 \
--db-file-path ./data/operator.db \
--disable-dnr-confirmation true
# replace the trap config address with the one you want to optin to
optin:
drosera-operator optin \
--eth-rpc-url ${RPC_URL} \
--eth-private-key ${DROSERA_PRIVATE_KEY} \
--drosera-address ${DROSERA_ADDRESS} \
--trap-config-address 0x7199593c9990F8F95b9b0A560E9Ea26f5Df4d51e
# replace the trap config address with the one you want to optout from
optout:
drosera-operator optout \
--eth-rpc-url ${RPC_URL} \
--eth-private-key ${DROSERA_PRIVATE_KEY} \
--drosera-address ${DROSERA_ADDRESS} \
--trap-config-address 0x7199593c9990F8F95b9b0A560E9Ea26f5Df4d51e