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
dXY3Dl/soLvnthMziyWMD3SC3oh9suraEnhMhb2wAgI=
Received
30.11.2020 18:11:24
Confirmation delay (full node)
7 minutes 10 seconds
Confirmation delay (light node)
10 minutes 14 seconds
Authors
C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W
Children
LmWKUh7DJnjDGj5Q1sjItb0eTybEBX+N1aETPTrbMhM=
Parents
IFkOD6SiDOWsFYb4V3bsB+ndS70VRLrAZw2ujwcwEGg=
Messages
Definition
Address:
UH2LGC6GFIYFYU55OZUSDGFXFVQBYAY2
Definition:
[ "autonomous agent", { "init": "{ $nom_AA = 'Portal'; $versio = '0.6'; $_AUT_000 = 'C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W'; $adr__ = trigger.address; $args = trigger.data; // Funcions auxiliars $__bota = $txt => bounce ( $nom_AA || ' >>> ' || $txt ); // Si no s'ha lliurat l'argument especificat bota l'accés $__arg = $arg => $args[ $arg ] ? $args[ $arg ] : $__bota( 'Cal proporcionar el valor de: ' || $arg ); $__autoritzada = ( $x ) => { $aut = var[ '_AUT_' || $x ]; $aut AND $aut == $adr__ }; if ( ! $args ) { $__bota( ': Cal proporcionar-ne els arguments' ); } $args._Portal = this_address; $args._FOP = var[ '_FOP' ]; $args._Estels = var[ '_Estels' ]; $args.geto = trigger.output[[ asset != base ]].asset; $args.qt = trigger.output[[ asset = $args.geto ]]; if ( !! $args.admin ) { $_a = $__arg( 'ref' ); $_b = $__arg( 'val' ); if ( $adr__ != $_AUT_000 AND ! $__autoritzada( '0' ) AND ! $__autoritzada( 'A' ) AND ! $__autoritzada( 'B' ) AND ! $__autoritzada( 'C' ) ) { $__bota( 'No autoritzada' ); } // _AUT_000 pot saltar-se el tràmit mentre no existeixi _AUT_0 $es_AUT_000 = $adr__ == $_AUT_000; if ( ! $es_AUT_000 OR ( !! $es_AUT_000 AND !! var[ '_AUT_0' ] ) ) { // Es tracta com a confirmació si s'hi proporciona la ref de la proposta if ( $args.ref == 'ref_proposta' ) { $proposta = var[ $args.val ]; // L'ordinal de la proposta ha de coincidir amb el del darrer if ( $proposta.ordinal != var[ 'prop_' || $proposta.ref ] ) { $__bota( 'Ref incorrecta' ); } // La confirmació l'ha de fer una AUT diferent a la proposant if ( $proposta.proposant == $adr__ ) { $__bota( 'Ja hi consta la teva proposta' ); } // La confirmació només es pot fer quan ha transcorregut el lapse especificat if ( timestamp - $proposta.temps > var[ 'Lapse' ] ) { $__bota( 'Encara no es pot confirmar la proposta' ); } // La proposta ha de constar com a validada a _Validacions if ( ! var[ $args._Validacions ][ $args.val ] ) { $__bota( 'Encara no ha estat validada' ); } $acc = 'confirmacio'; } else { $acc = 'proposta'; } } else { $acc = 'confirmacio'; } } else { $acc = 'acces'; } }", "messages": [ { "app": "data", "payload": "{ $args }" }, { "if": "{ ! $args.admin }", "app": "payment", "payload": { "asset": "{ $args.geto }", "outputs": [ { "address": "{ var[ '_Acces' ] }", "amount": "{ $args.qt }" } ] } }, { "if": "{ !! $args.admin }", "app": "state", "state": "{ if ( $acc == 'confirmacio' ) { var[ $args.ref ] = $args.val; response[ 'ref' ] = $args.ref; response[ 'val' ] = $args.val; } if ( $acc == 'proposta' ) { $ref_ordinal = 'prop_' || $args.ref; if ( ! var[ $ref_ordinal ] ) { $ordinal = 1; } else { $ordinal = var[ $ref_ordinal ] + 1; } var[ $ref_ordinal ] = $ordinal; $ref_proposta = 'proposta_' || $args.ref || '_' || $ordinal; var[ $ref_proposta ] = { ref: $args.ref, val: $args.val, ordinal: $ordinal, proposant: $adr__, temps: timestamp, }; response[ 'proposta' ] = $ref_proposta; response[ 'proposta ref' ] = $args.ref; response[ 'proposta val' ] = $args.val; response[ 'data per a la confirmació'] = timestamp_to_string( timestamp + var[ 'Lapse' ] , 'datetime' ); } response[ 'acc' ] = $acc; }" } ] } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
4,168
bytes
(452 headers, 3716 payload)
Level:
1782537
Witnessed level:
1782530
Last ball unit:
kTvtXLQYxRB8dJtkDdJ29Px/ZRaTnFuebR0JDrklUqk=
Main chain index:
1774747
Latest included mc index:
1774746
Status:
stable/confirmed/final