BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
[
"autonomous agent",
{
"doc_url": "https://oswap-frontend.herokuapp.com/factory.json",
"init": "{
$base = 'Q2PZLVN5BXPRNERE5DMEX4WCNP6A5AWC';
$assetA = trigger.data.assetA;
$assetB = trigger.data.assetB;
}",
"messages": {
"cases": [
{
"if": "{trigger.data.createPair AND $assetA AND $assetB AND trigger.output[[asset=base]] == 1e5}",
"init": "{
if ($assetA == $assetB) bounce('identical asset');
if (
!asset[$assetA].exists
OR asset[$assetA].is_private
OR !asset[$assetA].is_transferrable
OR asset[$assetA].fixed_denominations
OR !asset[$assetB].exists
OR asset[$assetB].is_private
OR !asset[$assetB].is_transferrable
OR asset[$assetB].fixed_denominations
)
bounce('invalid asset');
$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');
}",
"messages": [
{
"app": "definition",
"payload": {
"definition": [
"autonomous agent",
{
"base_aa": "{$base}",
"params": {
"factory": "{this_address}",
"asset0": "{$asset0}",
"asset1": "{$asset1}"
}
}
]
}
},
{
"app": "state",
"state": "{
$address = unit[response_unit].messages[[.app='definition']].payload.address;
var['all_pairs.' || $asset0 || '_' || $asset1] = $address;
var['all_pairs.' || $asset1 || '_' || $asset0] = $address;
var['get_pair.' || $address] = $asset0 || '_' || $asset1;
var['pair_count'] += 1;
}"
}
]
}
]
}
}
]
- MCI: 1293832
- Not bounced
- Response unit:
- Response: {}
- MCI: 1293826
- Not bounced
- Response unit:
- Response: {}
- MCI: 1293821
- Not bounced
- Response unit:
- Response: {}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
08.04.2020 14:29:01
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
out
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
08.04.2020 14:29:01
in
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
08.04.2020 14:26:42
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
out
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
08.04.2020 14:26:42
in
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
08.04.2020 14:25:37
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7
out
BJJ75K6MLRQOFA2QXDMTESSQHANGGTH7