diff --git a/dappnode_package.json b/dappnode_package.json index b065d33..5f3a994 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -11,12 +11,8 @@ "Eduardo Antuña (https://github.com/eduadiez)", "Abel Boldú (@vdo)" ], - "categories": [ - "Blockchain" - ], - "keywords": [ - "monero" - ], + "categories": ["Blockchain"], + "keywords": ["monero"], "links": { "homepage": "https://github.com/dappnode/DAppNodePackage-monero#readme" }, @@ -28,4 +24,4 @@ "url": "https://github.com/dappnode/DAppNodePackage-monero/issues" }, "license": "GPL-3.0" -} \ No newline at end of file +} diff --git a/setup-target.json b/setup-target.json new file mode 100644 index 0000000..66c5e3e --- /dev/null +++ b/setup-target.json @@ -0,0 +1,14 @@ +{ + "rpcPaymentAddress": { + "type": "environment", + "name": "RPC_PAYMENT_ADDRESS" + }, + "rpcPaymentCredits": { + "type": "environment", + "name": "RPC_PAYMENT_CREDITS" + }, + "rpcPaymentDifficulty": { + "type": "environment", + "name": "RPC_PAYMENT_DIFFICULTY" + } +} diff --git a/setup-ui.json b/setup-ui.json new file mode 100644 index 0000000..02a4db8 --- /dev/null +++ b/setup-ui.json @@ -0,0 +1,11 @@ +{ + "ui:order": ["keystore", "keystoreAddress", "keystorePassword"], + "keystorePassword": { + "ui:widget": "password" + }, + "keystoreAddress": { + "errorMessages": { + "pattern": "Must be a valid address (0x1fd16a...)" + } + } +} diff --git a/setup.schema.json b/setup.schema.json new file mode 100644 index 0000000..8a79817 --- /dev/null +++ b/setup.schema.json @@ -0,0 +1,26 @@ +{ + "description": "Welcome to DAppNode's Trustlines Network Validator configuration wizard!\n\nThis package is for those who successfully bid for a [Validator slot](https://medium.com/trustlines-foundation/trustlines-validator-spotlight-deep-dive-on-rewards-economics-and-opportunities-for-validators-ec75f81088a6) during Trustlines Foundation's Validator Auction and will be validating the network.\n\n\nPlease note you won't be able to Validate if your address was not whitelisted at the end of the Validator Slots auction.", + "type": "object", + "properties": { + "keystore": { + "type": "string", + "format": "data-url", + "title": "Keystore", + "description": "Your Keystore/JSON file containing the private key that you want to use for this node" + }, + "keystoreAddress": { + "type": "string", + "title": "Public Address", + "description": "Public address from the keystore.\nFor validators, you will use this address to seal blocks so it must be an authorized validator address, you can check the valid addresses in [this list](https://github.com/trustlines-protocol/blockchain/blob/1c664ff7d28998b7070c9edb3b325062a5365aad/chain/tlbc/tlbc-spec.json#L11)", + "pattern": "^0x[a-fA-F0-9]{40}$", + "customErrors": { + "pattern": "Must be a valid address (0x1fd16a...)" + } + }, + "keystorePassword": { + "type": "string", + "title": "Password", + "description": "Password to unlock the uploaded keystore" + } + } +} \ No newline at end of file