Skip to content

Commit 27f4ec8

Browse files
committed
feat: add starknet-staking-v2 package and config
1 parent e66d9c7 commit 27f4ec8

10 files changed

Lines changed: 1753 additions & 18 deletions

dappnode_package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "juno.dnp.dappnode.eth",
3-
"version": "2.0.2",
4-
"shortDescription": "StarkNet full node",
3+
"version": "2.0.3",
4+
"shortDescription": "StarkNet full node and validator",
55
"description": "Nethermind Starknet Node Client Juno",
66
"type": "service",
77
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
@@ -18,8 +18,8 @@
1818
"upstreamRepo": "NethermindEth/juno",
1919
"links": {
2020
"homepage": "https://github.com/dappnode/DAppNodePackage-juno-generic#readme",
21-
"api": "http://juno.dappnode:6060/",
22-
"websocket": "ws://juno.dappnode:6061/"
21+
"api": "http://juno.juno.dappnode:6060/",
22+
"websocket": "ws://juno.juno.dappnode:6061/"
2323
},
2424
"repository": {
2525
"type": "git",

docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
context: juno
66
args:
77
UPSTREAM_VERSION: v0.15.12
8-
image: juno.dnp.dappnode.eth:2.0.2
8+
image: juno.dnp.dappnode.eth:2.0.3
99
security_opt:
1010
- seccomp:unconfined
1111
environment:
@@ -16,5 +16,16 @@ services:
1616
volumes:
1717
- juno_data:/var/lib/juno
1818
restart: unless-stopped
19+
staking:
20+
image: nethermind/starknet-staking-v2:v0.2.9
21+
command:
22+
["--metrics", "--metrics-host", "0.0.0.0", "--metrics-port", "9090"]
23+
environment:
24+
PROVIDER_HTTP_URL: http://juno:6060/rpc/v0_8
25+
PROVIDER_WS_URL: ws://juno:6061/ws/v0_8
26+
SIGNER_OPERATIONAL_ADDRESS: ""
27+
SIGNER_PRIVATE_KEY: ""
28+
SIGNER_EXTERNAL_URL: ""
29+
restart: unless-stopped
1930
volumes:
2031
juno_data: {}

juno/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ juno \
4949
--http-port ${HTTP_PORT:-6060} \
5050
--http-host 0.0.0.0 \
5151
--db-path $JUNO_DIR \
52-
--metrics \
52+
--metrics \
5353
--metrics-port 9090 \
5454
--metrics-host 0.0.0.0 \
5555
$ethnode $wsopts $EXTRA_OPTS

package_variants/mainnet/dappnode_package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "juno.dnp.dappnode.eth",
3-
"version": "0.1.0",
3+
"version": "2.0.3",
44
"shortDescription": "StarkNet full node",
55
"links": {
66
"homepage": "https://github.com/dappnode/DAppNodePackage-juno-generic#readme",
7-
"api": "http://juno.dappnode:6070/",
8-
"websocket": "ws://juno.dappnode:6071/"
7+
"api": "http://juno.juno.dappnode:6070/",
8+
"websocket": "ws://juno.juno.dappnode:6071/"
99
},
1010
"exposable": [
1111
{
@@ -19,4 +19,4 @@
1919
"port": 6061
2020
}
2121
]
22-
}
22+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.8"
22
services:
33
juno:
4-
image: juno.dnp.dappnode.eth:2.0.2
4+
image: juno.dnp.dappnode.eth:2.0.3
55
ports:
66
- "6060:6060"
77
- "6061:6061"
@@ -10,3 +10,13 @@ services:
1010
NETWORK: sepolia
1111
HTTP_PORT: 6060
1212
WS_PORT: 6061
13+
staking:
14+
image: nethermind/starknet-staking-v2:v0.2.9
15+
command:
16+
["--metrics", "--metrics-host", "0.0.0.0", "--metrics-port", "9090"]
17+
environment:
18+
PROVIDER_HTTP_URL: http://juno:6060/rpc/v0_8
19+
PROVIDER_WS_URL: ws://juno:6061/ws/v0_8
20+
SIGNER_OPERATIONAL_ADDRESS: ""
21+
SIGNER_PRIVATE_KEY: ""
22+
SIGNER_EXTERNAL_URL: ""

package_variants/mainnet/prometheus-targets.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
"service": "juno"
66
},
77
"targets": [
8-
"juno.dappnode:9090"
8+
"juno.juno.dappnode:9090"
9+
]
10+
},
11+
{
12+
"labels": {
13+
"package": "juno.dnp.dappnode.eth",
14+
"service": "staking"
15+
},
16+
"targets": [
17+
"staking.juno.dappnode:9090"
918
]
1019
}
11-
]
20+
]

package_variants/sepolia/dappnode_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "juno-sepolia.dnp.dappnode.eth",
3-
"version": "0.1.0",
3+
"version": "2.0.3",
44
"shortDescription": "StarkNet full node in Sepolia",
55
"links": {
66
"homepage": "https://github.com/dappnode/DAppNodePackage-juno-generic#readme",
@@ -19,4 +19,4 @@
1919
"port": 6071
2020
}
2121
]
22-
}
22+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.8"
22
services:
33
juno:
4-
image: juno.dnp.dappnode.eth:2.0.2
4+
image: juno.dnp.dappnode.eth:2.0.3
55
ports:
66
- "6070:6070"
77
- "6071:6071"
@@ -10,3 +10,13 @@ services:
1010
NETWORK: sepolia
1111
HTTP_PORT: 6070
1212
WS_PORT: 6071
13+
staking:
14+
image: nethermind/starknet-staking-v2:v0.2.9
15+
command:
16+
["--metrics", "--metrics-host", "0.0.0.0", "--metrics-port", "9090"]
17+
environment:
18+
PROVIDER_HTTP_URL: http://juno-sepolia:6060/rpc/v0_8
19+
PROVIDER_WS_URL: ws://juno-sepolia:6061/ws/v0_8
20+
SIGNER_OPERATIONAL_ADDRESS: ""
21+
SIGNER_PRIVATE_KEY: ""
22+
SIGNER_EXTERNAL_URL: ""

package_variants/sepolia/prometheus-targets.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
"service": "juno"
66
},
77
"targets": [
8-
"juno-sepolia.dappnode:9090"
8+
"juno.juno-sepolia.dappnode:9090"
9+
]
10+
},
11+
{
12+
"labels": {
13+
"package": "juno-sepolia.dnp.dappnode.eth",
14+
"service": "staking"
15+
},
16+
"targets": [
17+
"staking.juno-sepolia.dappnode:9090"
918
]
1019
}
11-
]
20+
]

0 commit comments

Comments
 (0)