Unit ID
2B49Mkc0zEYAko/YT8tlKmkxghtQjzHCViCAj29LPE8=
Received
23.02.2020 22:30:58
Confirmation delay (full node)
2 minutes 57 seconds
Confirmation delay (light node)
5 minutes 32 seconds
Messages
Definition
Definition: [ "autonomous agent", { "doc_url": "https://oswap-frontend.herokuapp.com/oscript/factory.json", "init": "{ $exchange_template = 'GYPPZYMY72Y2SJB5TZKFEYSI24X6HBEI'; }", "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:1251489
Witnessed level:1251481
Main chain index:1246361
Latest included mc index:1246360
Status:stable/confirmed/final