From e4f18be94261b39544ef3bc50321f6aedeb45bd6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 31 Mar 2024 12:00:59 +0300 Subject: huge refactor, might breaking things --- bin/ak-transactions | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'bin/ak-transactions') diff --git a/bin/ak-transactions b/bin/ak-transactions index 6f33e54..f3bbf79 100755 --- a/bin/ak-transactions +++ b/bin/ak-transactions @@ -1,12 +1,16 @@ #!/bin/bash -PROGRAM="$(basename $0)" -_ak_modules_transactions_usage(){ - echo "$PROGRAM from to amount" -} +## +## ak-transactions +## +fullprogrampath="$(realpath $0)" +PROGRAM=$(basename $0) +descriptionString="Transactions module" -source $AK_LIBDIR/_ak_logit +source $AK_LIBDIR/_ak_log +source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_gpg +source $AK_LIBDIR/_ak_zblock _ak_modules_transactions_main(){ logit "INFO" "$FROM_ADDRESS to $TO_ADDRESS value sent: $AMOUNT" @@ -45,6 +49,6 @@ then AMOUNT="$3" _ak_modules_transactions_main cat $PWD/data | jq -M - ak-zblock-pack transaction/add $PWD/data -else _ak_modules_transactions_usage + _ak_zblock_pack transaction/add $PWD/data +else _ak_usage fi -- cgit v1.2.3