diff --git a/backend/.env.dist b/backend/.env.dist index 5794b6130..133ba5554 100644 --- a/backend/.env.dist +++ b/backend/.env.dist @@ -63,7 +63,6 @@ WEBHOOK_ELOPAGE_SECRET=secret # Federation FEDERATION_VALIDATE_COMMUNITY_TIMER=60000 -# FEDERATION_XCOM_SENDCOINS_ENABLED=false # GMS # GMS_ACTIVE=true diff --git a/backend/.env.org b/backend/.env.org index 2999c5ccc..2267fdc50 100644 --- a/backend/.env.org +++ b/backend/.env.org @@ -63,7 +63,6 @@ LOG_LEVEL=INFO # Federation FEDERATION_VALIDATE_COMMUNITY_TIMER=60000 -# FEDERATION_XCOM_SENDCOINS_ENABLED=false # GMS # GMS_ACTIVE=true diff --git a/backend/.env.template b/backend/.env.template index ba26f4122..9b0bc7df2 100644 --- a/backend/.env.template +++ b/backend/.env.template @@ -63,7 +63,6 @@ WEBHOOK_ELOPAGE_SECRET=$WEBHOOK_ELOPAGE_SECRET # Federation FEDERATION_VALIDATE_COMMUNITY_TIMER=$FEDERATION_VALIDATE_COMMUNITY_TIMER -# FEDERATION_XCOM_SENDCOINS_ENABLED=$FEDERATION_XCOM_SENDCOINS_ENABLED # GMS GMS_ACTIVE=$GMS_ACTIVE diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index 85b82cc27..aa0a7dbf2 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -99,19 +99,9 @@ const webhook = { process.env.APP_SECRET = server.JWT_SECRET const federation = { -// FEDERATION_BACKEND_SEND_ON_API: process.env.FEDERATION_BACKEND_SEND_ON_API ?? '1_0', - // ?? operator don't work here as expected FEDERATION_VALIDATE_COMMUNITY_TIMER: Number( process.env.FEDERATION_VALIDATE_COMMUNITY_TIMER ?? 60000, ), -// FEDERATION_XCOM_SENDCOINS_ENABLED: -// process.env.FEDERATION_XCOM_SENDCOINS_ENABLED === 'true' || false, - // default value for community-uuid is equal uuid of stage-3 -// FEDERATION_XCOM_RECEIVER_COMMUNITY_UUID: -// process.env.FEDERATION_XCOM_RECEIVER_COMMUNITY_UUID ?? '56a55482-909e-46a4-bfa2-cd025e894ebc', -// FEDERATION_XCOM_MAXREPEAT_REVERTSENDCOINS: parseInt( -// process.env.FEDERATION_XCOM_MAXREPEAT_REVERTSENDCOINS ?? '3', -// ), } const gms = { diff --git a/backend/src/config/schema.ts b/backend/src/config/schema.ts index 7baea6c07..144608992 100644 --- a/backend/src/config/schema.ts +++ b/backend/src/config/schema.ts @@ -208,40 +208,13 @@ export const schema = Joi.object({ .default(10) .description('Time in minutes before a new code can be requested') .required(), -/* - FEDERATION_BACKEND_SEND_ON_API: Joi.string() - .pattern(/^\d+_\d+$/) - .default('1_0') - .description('API Version of sending requests to another communities, e.g., "1_0"') - .required(), -*/ - FEDERATION_VALIDATE_COMMUNITY_TIMER: Joi.number() + + FEDERATION_VALIDATE_COMMUNITY_TIMER: Joi.number() .integer() .min(1000) .default(60000) .description('Timer interval in milliseconds for community validation') .required(), -/* - FEDERATION_XCOM_SENDCOINS_ENABLED: Joi.boolean() - .default(false) - .description('Enable or disable the federation send coins feature') - .optional(), - - FEDERATION_XCOM_RECEIVER_COMMUNITY_UUID: Joi.string() - .uuid() - .default('56a55482-909e-46a4-bfa2-cd025e894ebc') - .description( - 'UUID of the receiver community for federation cross-community transactions if the receiver is unknown', - ) - .required(), - - FEDERATION_XCOM_MAXREPEAT_REVERTSENDCOINS: Joi.number() - .integer() - .min(0) - .default(3) - .description('Maximum number of retries for reverting send coins transactions') - .required(), -*/ GMS_CREATE_USER_THROW_ERRORS: Joi.boolean() .default(false)