This commit is contained in:
Eric Laurello 2023-09-14 10:42:52 -04:00
parent c769b311db
commit 0dba817634

View File

@ -345,7 +345,7 @@ fin AS (
C.amount :: NUMBER AS amount,
C.currency,
A.decimal,
COALESCE(TRY_PARSE_JSON(attribute_value) :receiver, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :staking :delegate :validator, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :bank :send :to_address, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :wasm :execute :contract_addr) :: STRING AS receiver,
COALESCE(TRY_PARSE_JSON(attribute_value) :receiver, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :staking :delegate :validator, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :bank :send :to_address, TRY_PARSE_JSON(attribute_value) :msg :execute :msgs [0] :wasm :execute :contract_addr, TRY_PARSE_JSON(attribute_value) :execute :Ok :executed_by) :: STRING AS receiver,
m._inserted_timestamp,
concat_ws(
'-',
@ -381,6 +381,7 @@ fin AS (
amount IS NOT NULL
OR currency IS NOT NULL
)
AND receiver IS NOT NULL
),
links AS (
SELECT