From 1c2a94910255d500745696650b4d1cdead6a2e9b Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 17 Nov 2024 10:02:32 +0100 Subject: [PATCH] kvernberg/taler/exchange: Add more denominations --- hosts/kvernberg/services/pvvvvvv/exchange.nix | 116 +++++++++++++++++- 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/hosts/kvernberg/services/pvvvvvv/exchange.nix b/hosts/kvernberg/services/pvvvvvv/exchange.nix index eee2a33..e5abf19 100644 --- a/hosts/kvernberg/services/pvvvvvv/exchange.nix +++ b/hosts/kvernberg/services/pvvvvvv/exchange.nix @@ -13,7 +13,11 @@ in { debug = true; openFirewall = true; denominationConfig = '' - [COIN-${CURRENCY}-k1-1-0] + ## Old denomination names cannot be used again + #[COIN-${CURRENCY}-k1-1-0] + + ## NOK Denominations + [coin-${CURRENCY}-nok-1-0] VALUE = ${CURRENCY}:1 DURATION_WITHDRAW = 7 days DURATION_SPEND = 1 years @@ -24,6 +28,116 @@ in { FEE_REFUND = ${CURRENCY}:0 RSA_KEYSIZE = 2048 CIPHER = RSA + + [coin-${CURRENCY}-nok-5-0] + VALUE = ${CURRENCY}:5 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-10-0] + VALUE = ${CURRENCY}:10 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-20-0] + VALUE = ${CURRENCY}:20 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-50-0] + VALUE = ${CURRENCY}:50 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-100-0] + VALUE = ${CURRENCY}:100 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-200-0] + VALUE = ${CURRENCY}:200 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-500-0] + VALUE = ${CURRENCY}:500 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + [coin-${CURRENCY}-nok-1000-0] + VALUE = ${CURRENCY}:1000 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA + + ## PVV Special Prices + # 2024 pizza egenandel + [coin-${CURRENCY}-pvv-64-0] + VALUE = ${CURRENCY}:64 + DURATION_WITHDRAW = 7 days + DURATION_SPEND = 1 years + DURATION_LEGAL = 3 years + FEE_WITHDRAW = ${CURRENCY}:0 + FEE_DEPOSIT = ${CURRENCY}:0 + FEE_REFRESH = ${CURRENCY}:0 + FEE_REFUND = ${CURRENCY}:0 + RSA_KEYSIZE = 2048 + CIPHER = RSA ''; settings = { exchange = {