Merge pull request #56 into master

71960c1 hledger-flow: coinbase: allow 1INCH parsing (Aaron Fiore)
ce61e85 hledger-flow: gemini: allow 1INCH transfers (Aaron Fiore)
This commit is contained in:
2024-06-11 16:14:33 -07:00
2 changed files with 9 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ function __parse()
sub(/Z/, "", $9);
sub(/\+.*/, "", $9);
# Allow numerical symbols
gsub(/1INCH/, "ONEINCH")
# Print for rules consumption
printf $1 OFS # account_id (prepended column)
printf $2 OFS # id (coinbase_id)

View File

@@ -77,6 +77,9 @@ function parse_transfers()
# Get/set info_method (if available)
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN" || $10 == "CreditCard") {$8=$10}
# Allow numerical symbols
gsub(/1INCH/, "ONEINCH")
printf $1 OFS # UID (info_eid)
printf date OFS # Date
printf "TRANSFER" OFS # Type
@@ -147,6 +150,9 @@ function parse_transfers()
# Get/set info_method (if available)
if ($8 == "ACH" || $8 == "Wire" || $8 == "SEN" || $8 == "CreditCard") {$6=$8}
# Allow numerical symbols
gsub(/1INCH/, "ONEINCH")
printf $1 OFS # UID (info_eid)
printf date OFS # Date
printf "TRANSFER" OFS # Type