diff --git a/.env.example b/.env.example
index 16a52a47..87e12c50 100644
--- a/.env.example
+++ b/.env.example
@@ -1,3 +1,6 @@
REACT_APP_CHAIN_ENDPOINT=wss://peregrine.kilt.io
+REACT_APP_UNIRESOLVER_ENDPOINT=https://dev-uniresolver.kilt.io
+REACT_APP_CHECKOUT_URL=https://dev-checkout.kilt.io
+REACT_APP_TXD_URL=https://txd-dev.trusted-entity.io
REACT_APP_MAINTENANCE=false
REACT_APP_IS_TEST_ENV=false
diff --git a/package.json b/package.json
index b143f84a..eb17da10 100644
--- a/package.json
+++ b/package.json
@@ -19,44 +19,44 @@
"@polkadot/api": "^10.11.1",
"@polkadot/extension-dapp": "^0.46.6",
"@polkadot/util-crypto": "^12.6.1",
- "ky": "^1.2.0",
+ "ky": "^1.2.4",
"lodash-es": "^4.17.21",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
- "react-router-dom": "6",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
+ "react-router-dom": "6.23.0",
"swr": "^2.2.2"
},
"devDependencies": {
"@parcel/transformer-svg-react": "^2.7.0",
"@types/lodash-es": "^4.17.12",
- "@types/react": "^18.2.56",
- "@types/react-dom": "^18.2.19",
- "@typescript-eslint/eslint-plugin": "^7.0.1",
- "@typescript-eslint/parser": "^7.0.1",
+ "@types/react": "^18.3.1",
+ "@types/react-dom": "^18.3.0",
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
+ "@typescript-eslint/parser": "^7.2.0",
"buffer": "^6.0.3",
"bundlewatch": "^0.3.3",
- "eslint": "^8.56.0",
+ "eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
- "eslint-plugin-astro": "^0.31.4",
+ "eslint-plugin-astro": "^1.1.2",
"eslint-plugin-import": "^2.29.1",
- "eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
+ "eslint-plugin-n": "^15.0.0 || ^16.0.0 || ^17.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
- "eslint-plugin-react": "^7.33.2",
- "eslint-plugin-react-hooks": "^4.6.0",
- "eslint-plugin-vitest": "^0.3.22",
+ "eslint-plugin-react": "^7.34.1",
+ "eslint-plugin-react-hooks": "^4.6.2",
+ "eslint-plugin-vitest": "^0.4.1",
"events": "^3.3.0",
"parcel": "^2.7.0",
- "postcss": "^8.4.35",
+ "postcss": "^8.4.38",
"prettier": "3.1.1",
"process": "^0.11.10",
- "stylelint": "^16.2.1",
+ "stylelint": "^16.5.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-standard": "^36.0.0",
"typed-css-modules": "^0.9.1",
- "typescript": "^5.3.3",
+ "typescript": "^5.4.5",
"typescript-plugin-css-modules": "^5.1.0"
},
"browserslist": {
@@ -79,6 +79,6 @@
}
},
"engines": {
- "node": ">=20.11.1"
+ "node": ">=20.13.0"
}
}
diff --git a/src/Components/VerificationMethod/VerificationMethod.tsx b/src/Components/VerificationMethod/VerificationMethod.tsx
index db6159a4..71567479 100644
--- a/src/Components/VerificationMethod/VerificationMethod.tsx
+++ b/src/Components/VerificationMethod/VerificationMethod.tsx
@@ -6,6 +6,9 @@ interface Props {
did?: DidUri;
}
+export const uniresolverEndpoint = process.env
+ .REACT_APP_UNIRESOLVER_ENDPOINT as string;
+
export const VerificationMethod = (props: Props) => {
return (
diff --git a/src/Utils/useTXDTransmitter.ts b/src/Utils/useTXDTransmitter.ts
index 99f567e1..e5a3925a 100644
--- a/src/Utils/useTXDTransmitter.ts
+++ b/src/Utils/useTXDTransmitter.ts
@@ -3,24 +3,15 @@ import ky from 'ky';
import { type KiltAddress } from '@kiltprotocol/sdk-js';
-import { endpoint } from './claimWeb3name-helpers';
-
-const txdUrls: Record = {
- 'wss://kilt-rpc.dwellir.com': 'https://txd.trusted-entity.io',
- 'wss://spiritnet.kilt.io': 'https://txd.trusted-entity.io',
- 'wss://spiritnet.api.onfinality.io/public-ws':
- 'https://txd.trusted-entity.io',
- 'wss://peregrine.kilt.io': 'https://dev.txd.trusted-entity.io',
- 'wss://peregrine-stg.kilt.io/para': 'https://smoke.txd.trusted-entity.io',
-};
+export const checkoutServiceURL = process.env.REACT_APP_CHECKOUT_URL as string;
+if (!checkoutServiceURL) {
+ throw new Error('No URL for the Checkout Service provided.');
+}
-const checkoutUrls: Record = {
- 'wss://kilt-rpc.dwellir.com': 'https://checkout.kilt.io',
- 'wss://spiritnet.kilt.io': 'https://checkout.kilt.io',
- 'wss://spiritnet.api.onfinality.io/public-ws': 'https://checkout.kilt.io',
- 'wss://peregrine.kilt.io': 'https://dev.checkout.kilt.io',
- 'wss://peregrine-stg.kilt.io/para': 'https://smoke.checkout.kilt.io',
-};
+const txdUrl = process.env.REACT_APP_TXD_URL as string;
+if (!txdUrl) {
+ throw new Error('No URL for the Transaction Daemon provided.');
+}
function useApi