Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
EFEELml5b+Jml5FNcEp4kog5z7pGEdQHEgGbr3wPxEY=
Received
12.04.2020 15:41:23
Confirmation delay (full node)
6 minutes 1 second
Confirmation delay (light node)
9 minutes 22 seconds
Authors
TTERXIO5HNT7T6XQQLCVI4MCP2ZVXLHE
Children
rQVdeH62AEUMJhbDgTgtTgQKVMnbnnmgCxmjLGQinRc=
Parents
blzc+ZnXS1BO8z6Ez1jFt99xBe7nx11nhWjWhHesC2I=
Messages
Definition
Address:
2WFVHDIPCAJIDJZUAKHAQ26NMTGRZYWC
Definition:
[ "autonomous agent", { "doc_url": "https://oswap-frontend.herokuapp.com/factory.json", "init": "{ $base = 'IDFMMB5JNGG7QP7XYWQVEBBMR27QCJYU'; $address = trigger.data.address; $assetA = trigger.data.assetA; $assetB = trigger.data.assetB; }", "messages": { "cases": [ { "if": "{trigger.data.create AND $assetA AND $assetB AND trigger.output[[asset=base]] == 1e4}", "init": "{ $order = number_from_seed($assetA) > number_from_seed($assetB); $asset0 = $order ? $assetA : $assetB; $asset1 = $order ? $assetB : $assetA; if (var['all_pairs.' || $asset0 || '_' || $asset1]) bounce('pair exists'); if ($asset0 == $asset1) bounce('identical asset'); if ( !asset[$asset0].exists OR asset[$asset0].is_private OR !asset[$asset0].is_transferrable OR asset[$asset0].fixed_denominations OR !asset[$asset1].exists OR asset[$asset1].is_private OR !asset[$asset1].is_transferrable OR asset[$asset1].fixed_denominations ) bounce('invalid asset'); }", "messages": [ { "app": "definition", "payload": { "definition": [ "autonomous agent", { "base_aa": "{$base}", "params": { "factory": "{this_address}", "asset0": "{$asset0}", "asset1": "{$asset1}" } } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$address}", "amount": "{5e3}" } ] } }, { "app": "data", "payload": { "initialize": "1" } }, { "app": "state", "state": "{ if ($address != unit[response_unit].messages[[.app='definition']].payload.address) bounce('wrong address'); var['all_pairs.' || $asset0 || '_' || $asset1] = $address; var['all_pairs.' || $asset1 || '_' || $asset0] = $address; var['get_pair.' || $address] = $asset0 || '_' || $asset1; var['pair_count'] += 1; response['type'] = 'create'; }" } ] }, { "if": "{trigger.data.finalize AND var['get_pair.' || trigger.address]}", "messages": [ { "app": "state", "state": "{ var['assets.' || trigger.address] = trigger.unit; response['type'] = 'finalize'; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,227
bytes
(353 headers, 1874 payload)
Level:
1305089
Witnessed level:
1305080
Last ball unit:
GVyL6nHUTOESaK3YmaltDcrYRK+1HDjSXG5ommV37oE=
Main chain index:
1299880
Latest included mc index:
1299879
Status:
stable/confirmed/final