Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# build the dappnode package
build:
npx @dappnode/dappnodesdk build
46 changes: 28 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"repository": "https://github.com/dappnode/DAppNodePackage-Hopr",
"private": true,
"devDependencies": {
"@dappnode/dappnodesdk": "^0.3.32"
"@dappnode/dappnodesdk": "^0.3.38"
}
}
47 changes: 41 additions & 6 deletions setup-wizard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fields:
service: node
title: Identity file password
required: true
pattern: "[^\\s]{10,}"
pattern: ^[^\\s]{10,}$
patternErrorMessage: Must be at least 10 characters long!
description: >-
Password used to protect the new or existing identity file.
Expand Down Expand Up @@ -35,12 +35,32 @@ fields:
title: RPC Provider URL
required: false
description: |-
URL to the custom RPC provider this HOPR node should use.
URL to the custom RPC provider this HOPR node should use. Supports simple query strings.
If your DAppnode is running a Gnosis Chain RPC endpoint, it is **strongly recommended** to use it here.

*Example:* `http://nethermind-xdai.dappnode:8545`
secret: false
pattern: "^http[s]{0,1}://[a-z0-9.-]{3,}(:[0-9]{2,5})?(/[a-z0-9.-/_]+)?$"
# Regular expression for matching URLs with simple query strings
#
# Components:
# - ^http[s]{0,1}:// : Matches HTTP or HTTPS protocol
# Examples: http://, https://
#
# - [a-z0-9.-]{3,} : Matches domain name (min 3 chars)
# Allows: lowercase letters, numbers, dots, hyphens
# Examples: example.com, sub.example.com, my-domain.com
#
# - (:[0-9]{2,5})? : Optional port number (10-99999)
# Examples: :80, :8080, :44300
#
# - (/[a-z0-9.-/_]+)? : Optional URL path
# Allows: slashes, lowercase letters, numbers, dots, hyphens, underscores
# Examples: /path, /path/to/resource, /api/v1/endpoint
#
# - (\?[a-z0-9._=&-]+)? : Optional query string
# Allows: lowercase letters, numbers, dots, underscores, equals signs, ampersands, hyphens
# Examples: ?param=value, ?id=123&type=test, ?user.name=john_doe
pattern: ^http[s]{0,1}://[a-z0-9.-]{3,}(:[0-9]{2,5})?(/[a-z0-9.-/_]+)?(\?[a-z0-9._=&-]+)?$
patternErrorMessage: Must be a valid url starting with `http://` or `https://`

# - id: IDENTITY
Expand Down Expand Up @@ -77,7 +97,7 @@ fields:

*Example:* `0x010203040506070809aabbccddeeff00112233`
secret: false
pattern: "^0x[a-fA-F0-9]{40}$"
pattern: ^0x[a-fA-F0-9]{40}$
patternErrorMessage: Must be a valid Ethereum address!

- id: HOPRD_MODULE_ADDRESS
Expand All @@ -94,7 +114,7 @@ fields:

*Example:* `0x010203040506070809aabbccddeeff00112233`
secret: false
pattern: "^0x[a-fA-F0-9]{40}$"
pattern: ^0x[a-fA-F0-9]{40}$
patternErrorMessage: Must be a valid Ethereum address!

- id: HOPRD_HOST
Expand All @@ -117,5 +137,20 @@ fields:

*Example (dynDNS entry):* `abcd1234.dyndns.dappnode.io:9091`
secret: false
pattern: "^[a-z0-9.-]{3,}:909[1-9]$"
pattern: ^[a-z0-9.-]{3,}:909[1-9]$
patternErrorMessage: Must be in correct host:port format!

- id: HOPRD_NAT
target:
type: environment
name: HOPRD_NAT
service: node
title: Enable NAT mode
required: false
description: |-
By default the HOPR node assumes that it is running behind a NAT on a
dappnode. If this is not the case or proper port forwarding has been
set up this option can be set to `false` to disable NAT mode.
secret: false
pattern: ^(true|false)$
patternErrorMessage: Must be either `true` or `false`!
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mkShell {
envsubst

# build utils
just
nodejs_20

# custom pkg groups
Expand Down