Unit ID
fYjl4z3f3twmDLjQvCS/l3IjaRt6JJ+jhNDwlQBZtaY=
Received
31.05.2020 04:04:13
Confirmation delay (full node)
30 minutes 30 seconds
Confirmation delay (light node)
38 minutes 30 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $origin = definition[trigger.address][1].base_aa otherwise trigger.address; $oracle = trigger.data.oracle; $asset_symbol = to_upper(trigger.data.asset_symbol); $decimals = trigger.data.decimals OTHERWISE 9; if (!$oracle) bounce("no oracle specified"); if (!is_valid_address($oracle)) bounce("oracle is not a valid address"); if ($asset_symbol){ if (typeof($asset_symbol) != "string") bounce("asset symbol must be a string"); if(contains($asset_symbol,"|")) bounce("asset symbol cannot contain '|'"); if (length($asset_symbol) > 50) bounce("asset symbol cannot be longer than 50 chars"); if (var['s2a_' || $asset_symbol || '|' || $origin || '|' || $oracle]) bounce("This symbol is already registered"); if (trigger.output[[asset=base]] < length($asset_symbol)*2 + 408) bounce("Payment received doesn't cover storage fees"); if (!is_integer($decimals)) bounce("Decimals must be integer"); } }", "messages": [ { "if": "{exists(trigger.data.next_asset_step)}", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": 1 } ] } }, { "if": "{exists(trigger.data.next_asset_step)}", "app": "data", "payload": { "asset_step": "{trigger.data.next_asset_step}" } }, { "if": "{$asset_symbol}", "init": "{ $asset = trigger.unit; }", "app": "state", "state": "{ var['s2a_' || $asset_symbol || '|' || $origin || '|' || $oracle] = $asset; var['a2s_' || $asset || '|' || $origin || '|' || $oracle] = $asset_symbol; var['decimals_'|| $asset || '|' || $origin || '|' || $oracle] = $decimals; }" } ] } ]
Technical information
Fees:
2,018 bytes
(353 headers, 1665 payload)
Level:1352790
Witnessed level:1352780
Main chain index:1347277
Latest included mc index:1347276
Status:stable/confirmed/final