offline tool: add wire-fee cmd
This commit is contained in:
parent
6ee1a994ad
commit
17be86bfd4
5 changed files with 111 additions and 21 deletions
|
|
@ -2,24 +2,43 @@
|
|||
|
||||
set -e
|
||||
|
||||
file1="tmp_file1.json"
|
||||
file2="tmp_file2.json"
|
||||
file3="tmp_file3.json"
|
||||
file4="tmp_file4.json"
|
||||
a="tmp_a.json"
|
||||
b="tmp_b.json"
|
||||
|
||||
auditor_pub=$(<"./data/auditor_public_key")
|
||||
|
||||
dune exec offline -- download --output $file1
|
||||
dune exec offline -- sign --input $file1 --output $file2
|
||||
dune exec offline -- upload --input $file2 --url "/management/keys"
|
||||
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 $file3 --auditor_url "auditor.example.com" --auditor_name "auditor example" --auditor_pub $auditor_pub --validity_start "0.0"
|
||||
dune exec offline -- upload --input $file3 --url "/management/auditors"
|
||||
dune exec offline -- enable-auditor \
|
||||
--output $b \
|
||||
--auditor_url "auditor.example.com" \
|
||||
--auditor_name "auditor example" \
|
||||
--auditor_pub $auditor_pub \
|
||||
--validity_start "0.0"
|
||||
dune exec offline -- upload --input $b --url "/management/auditors"
|
||||
|
||||
dune exec offline -- global-fees --output $file4 --start_date "0.0" --end_date "99999999.9" --history_fee "EUR:0.0" --account_fee "EUR:0.0" --purse_fee "EUR:0.0" --history_expiration "9999999.0" --purse_account_limit 1 --purse_timeout "9999999.0"
|
||||
dune exec offline -- upload --input $file4 --url "/management/global-fees"
|
||||
dune exec offline -- wire-fee \
|
||||
--output $b \
|
||||
--wire_method "magic" \
|
||||
--fee_start "0.0" \
|
||||
--fee_end "99999999.9" \
|
||||
--closing_fee "EUR:0.0" \
|
||||
--wire_fee "EUR:0.0"
|
||||
dune exec offline -- upload --input $b --url "/management/wire-fee"
|
||||
|
||||
rm $file1
|
||||
rm $file2
|
||||
rm $file3
|
||||
rm $file4
|
||||
dune exec offline -- global-fees \
|
||||
--output $b \
|
||||
--start_date "0.0" \
|
||||
--end_date "99999999.9" \
|
||||
--history_fee "EUR:0.0" \
|
||||
--account_fee "EUR:0.0" \
|
||||
--purse_fee "EUR:0.0" \
|
||||
--history_expiration "9999999.0" \
|
||||
--purse_account_limit 1 \
|
||||
--purse_timeout "9999999.0"
|
||||
dune exec offline -- upload --input $b --url "/management/global-fees"
|
||||
|
||||
rm $a
|
||||
rm $b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue