2026-02-03 12:52:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2026-02-03 14:04:05 +01:00
|
|
|
set -e
|
|
|
|
|
|
2026-02-03 22:03:25 +01:00
|
|
|
a="tmp_a.json"
|
|
|
|
|
b="tmp_b.json"
|
2026-02-03 17:24:19 +01:00
|
|
|
|
|
|
|
|
auditor_pub=$(<"./data/auditor_public_key")
|
2026-02-03 14:04:05 +01:00
|
|
|
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- download --output $a
|
|
|
|
|
dune exec offline -- sign --input $a --output $b
|
|
|
|
|
dune exec offline -- upload --input $b --url "/management/keys"
|
2026-02-03 17:24:19 +01:00
|
|
|
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- enable-auditor \
|
|
|
|
|
--output $b \
|
|
|
|
|
--auditor_url "auditor.example.com" \
|
|
|
|
|
--auditor_name "auditor example" \
|
|
|
|
|
--auditor_pub $auditor_pub \
|
2026-02-05 15:31:49 +01:00
|
|
|
--validity_start 0
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- upload --input $b --url "/management/auditors"
|
2026-02-03 17:24:19 +01:00
|
|
|
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- wire-fee \
|
|
|
|
|
--output $b \
|
|
|
|
|
--wire_method "magic" \
|
2026-02-05 15:31:49 +01:00
|
|
|
--fee_start 0 \
|
|
|
|
|
--fee_end 99999999 \
|
2026-02-03 22:03:25 +01:00
|
|
|
--closing_fee "EUR:0.0" \
|
|
|
|
|
--wire_fee "EUR:0.0"
|
|
|
|
|
dune exec offline -- upload --input $b --url "/management/wire-fee"
|
2026-02-03 14:04:05 +01:00
|
|
|
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- global-fees \
|
|
|
|
|
--output $b \
|
2026-02-05 15:31:49 +01:00
|
|
|
--start_date 0 \
|
|
|
|
|
--end_date 99999999 \
|
2026-02-03 22:03:25 +01:00
|
|
|
--history_fee "EUR:0.0" \
|
|
|
|
|
--account_fee "EUR:0.0" \
|
|
|
|
|
--purse_fee "EUR:0.0" \
|
2026-02-05 15:31:49 +01:00
|
|
|
--history_expiration 9999999 \
|
2026-02-03 22:03:25 +01:00
|
|
|
--purse_account_limit 1 \
|
2026-02-05 15:31:49 +01:00
|
|
|
--purse_timeout 9999999
|
2026-02-03 22:03:25 +01:00
|
|
|
dune exec offline -- upload --input $b --url "/management/global-fees"
|
|
|
|
|
|
|
|
|
|
rm $a
|
|
|
|
|
rm $b
|