Escrow educativo
CREATEDestado actual
0fondos bloqueados
0eventos emitidos
Estado inicial: todavía no hay fondos bloqueados.
Operá un escrow educativo y observá qué acciones son válidas en cada estado. La simulación enfatiza precondiciones, transición de estado y eventos; Los roles son supuestos didácticos: comprador deposita y libera, vendedor declara entrega y árbitro puede reembolsar. No incluye disputas, plazos ni firmas reales; la entrega declarada no prueba recepción física.
deposit(): require(sender == buyer && state == CREATED)
markDelivered(): require(sender == seller && state == FUNDED)
release(): require(sender == buyer && state == DELIVERED)
refund(): require(sender == arbiter)
require(state == FUNDED || state == DELIVERED)