forked from axiom-team/ssb-g1-tip
cesium url is like message
This commit is contained in:
parent
b0ccd030e2
commit
5a16c5250d
|
@ -7,15 +7,9 @@
|
|||
# Version: 1.0
|
||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||
###########################################################################################
|
||||
# ADD G1 Layer 10 LOVE to message writer you like !
|
||||
# PREVENT DOUBLE PAYEMENT
|
||||
# ADD G1 Layer 10 LOVE to message writer you like !
|
||||
############################################################################################
|
||||
|
||||
fn_exists() {
|
||||
# appended double quote is an ugly trick to make sure we do get a string -- if $1 is not a known command, type does not output anything
|
||||
[ `type -t $1`"" == 'file' ]
|
||||
}
|
||||
|
||||
# Let's get G1 public and private keys
|
||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
||||
g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
||||
|
@ -26,7 +20,7 @@ ssbpub=$(cat ~/.ssb/secret | grep public\" | cut -d ' ' -f 4 | cut -d '.' -f 1 |
|
|||
#### CHECK LIKE AND SEND LOVE
|
||||
# Let's get G1 account balance
|
||||
echo ""
|
||||
echo "Welcome to the G1 SSB "
|
||||
echo "Welcome G1/SSB Astroport Pioneer!"
|
||||
echo "
|
||||
MMMMMMMMMMMMMNk;'cdxxd:,c0WMMMMMMMMMMMMM
|
||||
MMMMMMMMMMMMMNx,. .;kWMMMMMMMMMMMMM
|
||||
|
@ -152,20 +146,3 @@ do
|
|||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
#######################################################################
|
||||
## SCAN G1 BLOCKCHAIN FOR INCOMING TX
|
||||
#######################################################################
|
||||
EVERY=1
|
||||
TIMEBEFORE=$(date --date="-$EVERY minutes" +"%s")
|
||||
TIMESTAMP=$(date +"%s")
|
||||
#log "GETTING last $EVERY mn TX : https://duniter-g1.p2p.legal/tx/history/$g1pub/times/$TIMEBEFORE/$TIMESTAMP"
|
||||
curl -s https://$duniter_server/tx/history/$g1pub/times/$TIMEBEFORE/$TIMESTAMP | jq '.history.pending' | jq '.[].comment' > /tmp/zenfontain.g1tx.txt
|
||||
while read txincmd
|
||||
do
|
||||
export $txincmd
|
||||
log "$g1pub TX IN PENDING !! COMMENT = " $txincmd
|
||||
sbotc publish '{"type":"post","text":"I am receiving G1 on my SSB Wallet $g1pub"}'
|
||||
|
||||
|
||||
done < /tmp/zenfontain.g1tx.txt
|
||||
|
|
Loading…
Reference in New Issue