#!/bin/bash set -e a="tmp_a.json" b="tmp_b.json" auditor_pub=$(<"./data/auditor_public_key") dune exec offline -- download --output $a dune exec offline -- sign --input $a --output $b dune exec offline -- upload --input $b --url "/management/keys" dune exec offline -- enable-auditor \ --output $b \ --auditor_url "auditor.example.com" \ --auditor_name "auditor example" \ --auditor_pub $auditor_pub \ --validity_start 0 dune exec offline -- upload --input $b --url "/management/auditors" dune exec offline -- wire-fee \ --output $b \ --wire_method "magic" \ --fee_start 0 \ --fee_end 999999990 \ --closing_fee "EUR:0.0" \ --wire_fee "EUR:0.0" dune exec offline -- upload --input $b --url "/management/wire-fee" dune exec offline -- global-fees \ --output $b \ --start_date 0 \ --end_date 999999999 \ --history_fee "EUR:0.0" \ --account_fee "EUR:0.0" \ --purse_fee "EUR:0.0" \ --history_expiration 99999999 \ --purse_account_limit 1 \ --purse_timeout 99999999 dune exec offline -- upload --input $b --url "/management/global-fees" rm $a rm $b