aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-transactions
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
commite4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch)
tree2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-transactions
parent23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff)
downloadarching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-transactions')
-rwxr-xr-xbin/ak-transactions18
1 files changed, 11 insertions, 7 deletions
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 <from> <to> <amount>
+##
+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