Unit ID
LswsPewDCjojqE86phQxKp8BEel4Un1Jdx/eBPtoLj0=
Received
04.03.2020 04:01:43
Confirmation delay (full node)
5 minutes 1 second
Confirmation delay (light node)
10 minutes 17 seconds
Messages
Definition
Definition: [ "autonomous agent", { "doc_url": "https://oswap-frontend.herokuapp.com/oscript/factory.json", "init": "{ $exchange_template = 'QOCT4JF4C3L725QJE56QFQEYSUTUUE2T'; }", "messages": { "cases": [ { "if": "{trigger.data.createExchange AND trigger.data.asset}", "init": "{ $asset = trigger.data.asset; if ( !asset[$asset].exists OR asset[$asset].is_private OR !asset[$asset].is_transferrable OR asset[$asset].fixed_denominations ) bounce("INVALID_ASSET"); if (var['asset_to_exchange.' || $asset]) bounce("DUPLICATE_EXCHANGE"); }", "messages": [ { "app": "definition", "payload": { "definition": [ "autonomous agent", { "base_aa": "{$exchange_template}", "params": { "asset": "{$asset}" } } ] } }, { "app": "state", "state": "{ $exchange = unit[response_unit].messages[[.app='definition']].payload.address; $asset_id = var['asset_count'] + 1; var['asset_to_exchange.' || $asset] = $exchange; var['exchange_to_asset.' || $exchange] = $asset; var['asset_count'] = $asset_id; var['id_to_asset.' || $asset_id] = $asset; response['asset'] = $asset; response['exchange'] = $exchange; }" } ] } ] } } ]
Technical information
Fees:
1,584 bytes
(353 headers, 1231 payload)
Level:1261610
Witnessed level:1261602
Main chain index:1256462
Latest included mc index:1256461
Status:stable/confirmed/final